Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
HiWhen I migrated by project to ST Cube IDE v2 this morning, my CM4 project would not link. I had to right-click the project and "convert to C++" (even though I had been using C++ for months with previous versions).Using a Nucleo STM32H755 as a target (dual core), my project is configured as follows:CM4 is using C++, and using Free RTOSCM7 is using C, and only using the HAL Steps TakenUpgrade the IDE from v1.19 to 2.0Install latest Cube MXOpen my workspace, and chose to "migrate" when promptedDouble click the .ioc file, fix an issue (related to CAN which I am not using) and re-generate the codeReturn to the IDE, and try to clean and build the CM4 project. I get linker errors. ResolutionRight-click the CM4 project and select "Convert to C++". (In v.19 the only available option was "Convert to C")Clean and build. Maybe this is a bug in the project migration process? Could it be specific to dual-core, where only the CM was configured for C++? CheersNick Outram&nb
I have STM32H753I-EVAL2 board and I want to set it up as an USB Speaker device. I see 3 protect that can make this as such, which are:NameBoardBoard TypeSTM32CubeMX VersionSW Package InstalledUx_Device_Audio_2.0STM32N6570-DKNucleo-64NATRUEUx_Device_Audio_2.0_StandaloneSTM32N6570-DKNucleo-64NATRUEUx_Device_Audio2.0_PlayBackSTM32H743I-EVALNucleo-646.15.0TRUE Two things...1) I don't want RTOS, but STM32H743I-EVAL has RTOS, and the one I'm looking for is on the wrong board. So... What advantage do I have using RTOS? Can I use the Standalone one and change the board somehow in the code? I haven't done much comparison to know, I've been overwhelmed trying to understand the organization of the project. 2) When I do download, install and run the Ux_Device_Audio2.0_PlayBack anyway, the program is running. I see the USB being enumerated as a speaker on my laptop. Issue is, everything is fine, but when I try to play an audio, it runs into a fault -- > `void HardFault_
Split from this thread. Actually, I have jitter in TIM1 PWM. Is there any way to decrease jitter?
I'm working on an STM32 project using STM32CubeIDE with CMake as the build system. I need to add custom include paths for my own header files.I tried to include my_folder from C/C++ General -> Paths and Symbols -> Includes, but it doesn't work.Note that under C/C++ Build -> Settings there is no settings to include anything, which are available only when working with STM32CubeMX/STM32CubeIDE Project
we are observing with the RTC (Real Time Clock) on the STM32L496ZG in our project. kindly help us to resolve this . The code gets stuck on power-on . Below are the details and what we have tried so far:1. Summary of the IssueAfter a full powering on, while debugging the code code get stuck in systemclockconfig() function. The issue occurs only on power-on with some hardware only and with same version of hardware its working correctly. 2. Hardware / System DetailsMCU: STM32L496ZGRTC clock source: (external crystal of 32.768KHz oscillator with 10pF capacitors used)On VBAT pin its 3.2v battery cell is usedwe uses below function for initialization : void SystemClock_Config(void) { #if 1 //og RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage */ if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1) != HAL_OK) { Error_Handler(); } /** Initializes
HelloA new release of STM32CubeMonitor-RF is available on st.com.Click on "Get latest" to download the version 2.19.0.What are the main changes in this version ?Alignment with STM32CubeWB firmware 1.24.0. Alignment with STM32CubeWBA firmware 1.8.0. Alignment with STM32CubeWB0 firmware 1.4.0. Upgrade of Java® runtime version from 21.0.4 to 21.0.8 Upgrade supported OpenThread version to 1.4.0 API 511 Bug fixChanges details can be found in the release note RN104 and User manual UM2288Note that whatever STM32CubeWB0 firmware 1.3.0 or 1.4.0 used, displayed version is 1.2.0 without futher impact on the tool behavior.Do not hesitate to create new posts if you have any question.The STM32CubeMonitor-RF team.
According to RM0433 Rev 8:The Run* mode is entered after a POR reset and a wakeup from Standby. In Run* mode, the performance is limited and the system supply configuration shall be programmed in PWR control register 3 (PWR_CR3). The system enters Run mode only when the ACTVOSRDY bit in PWR control status register 1 (PWR_CSR1) is set to 1.andAs long as ACTVOSRDY indicates that voltage levels are invalid, the system is in Run* mode, write accesses to the RAMs are not permitted and VOS shall not be changed.Now, the startup code first jumps (bl ExitRun0Mode) to the C function `ExitRun0Mode()` which probably might involves writes to stack.Is this construct (calling a C function from ASM) just relying on the compiler not touching the stack or am I'm reading the docs wrongly?best regardsTorsten
Hi,I've installed the CubeIDe rel 2.0.0 and the CubeMX rel 6.16.0; when I build my project this error appears: undefined reference to `ExitRun0Mode'. May you help me ? Thank you, CarloV
Hi! I have a problem. I faced with a problem of USB middleware initialization as a virtual port in CubeMX. After code generation USB init initializes in main.c within of one of task FREERTOS. If I initialize USB only as connectivity USB init replaces right. How to resolve it? Here details is: /* USER CODE END Header_start_task_can_handler */ void start_task_can_handler(void *argument) { /* init code for USB_DEVICE */ MX_USB_DEVICE_Init(); /* USER CODE BEGIN 5 */ app_start_task_can_handler(argument); /* Infinite loop */ for(;;) { osDelay(1); } /* USER CODE END 5 */ }
Hi everyoneI use STM32G030. I'm gonna set the clock system to HSE on the External crystal, but I couldn't find the proper RCC_OCS_OUT.What are the MCU's crystal correct pins?Please help me set the correct pinout.Thank you
Hello ST,I would like to report a bug in the <stm32g4xx_hal_dma.c> file (V1.2.5). In the function DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma), there's an error in calculating hdma->DMAmuxChannelStatusMask. For DMA2 channels, the channel_number should be adjusted by adding 8, 6, or 7 according to the MCU category. Otherwise, it will NOT be able to correctly determine and clear the synchronization overrun interrupt of the corresponding channel.To give you a better understanding of the issue, I've included some relevant code snippets with comments at Line 32 below:/** * @brief Updates the DMA handle with the DMAMUX channel and status mask depending on stream number * @PAram hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval None */ static void DMA_CalcDMAMUXChannelBaseAndMask(DMA_HandleTypeDef *hdma) { uint32_t dmamux_base_addr; uint32_t channel_number; DMAMUX_Channel_TypeD
Hello Everyone, I would like to get recommendations for STM32 development kits that have at least 3 DACs with their 3 independent outputs exposed, preferably a newer kit that can run an RTOS (not Linux). The faster the better. Thank you!
I have fitted an 8MHz crystal with 8.2pF capacitors to the NUCLEO-L433RC-P development board, but it is not working.The software goes to an error handler when configuring the clocks, becuase of a time out iduring the function HAL_RCC_OscConfig (wait till HSE is ready)... /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); /* Check the HSE State */ if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) { /* Get Start Tick*/ tickstart = HAL_GetTick(); /* Wait till HSE is ready */ while(READ_BIT(RCC->CR, RCC_CR_HSERDY) == 0U) { if((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) { return HAL_TIMEOUT; } } } The part numbers for the crystal and capacitors are below...Crystal: CG04874-8Mhttps://www.ndk.com/en/products/upload/lineup/pdf/NDKX03-00009_en.pdfCapacitors: KGM05ACG1H8R2CHhttps://datasheets.kyocera-avx.com/C0GNP0-KGM.pdfThe clock configuration is below...The board mod
I would like to use USBX to make a CDC ECM USB device, but in STM32CubeMX, there is no option for CDC ECM or RNDIS in the USBX device class menu: The STM32U545RE on the other hand has options for CDC ECM and RNDIS: Does STM32U385 support CDC ECM and RNDIS with USBX? If yes, is there something I need to do in order to show CDC ECM as an option in STM32CubeMX? Thanks!
When "Activating clock source" is ticked in RTC module, my MCU doesn't start up if I reset it from RST button. But as soon as I switch the RCC clock source to LSE external 32.768khz crystal and change RTC Clock Mux to LSE, it works without a hitch. Is this by design or there may be a bug?
Hello,I can't setup DCMI DMA in cubeMX because in DMA list there is no available handle, then I choose DCMI interface in DMA list is enabled DCMII_PSSI request, but there is no handle, all handles is inactive, how to setup ?
As mentioned, in order to rule out the interference from the existing project, I created a new blank project. However, it still didn't work. This issue was not present in the previous version 6.13.As shown in the above picture, I have disabled spi1 but still cannot enable the quad spi mode of spi2. Please provide a solution as soon as possible, or please inform me how to roll back my project version to 6.14 or earlier. The project is urgent. Thank you.@
Hello everybody,Problem: I start a new project from scratch in CubeMX version 6.15.0 with STM32H7A3VG. First thing I do is to try to chose OCTOSPI1, Mode Quad-SPI. But it does not work. It's greyed out and I get the message:"Quad SPI disabled: Quad-SPI Mode is already activated".Same thing if I try to chose OCTOSPI2, Mode Quad-SPI.Same thing in STMCubeIDE 1.19.CubeMX version 6.14 allowed me to chose Quad-SPI.Do I miss something ? Is it a bug ?RegardsVmanne
With the last versione of STM32CUBEIDE Version: 1.19.0 i can't configure the OCTOSPI as QUADSPI
I have a Nucleo-L476RG and Nucleo-IKSO1A3. What software will I need to run examples on expansion bd sensors ?Anyone have old version of Unicleo-GUI ?version 1.10.XXX possibly? The new version does not show MEMSWhere can I find software that has these examples?"Please note that the X-CUBE_MEMS1 function pack contains examples for the NUCLEO-L476RG + the X-NUCLEO-IKS01A3 in the folder \Projects\STM32L476RG-Nucleo\Examples\IKS01A3."If not possible then which STM32 boards will work with IKS01A3 in MEMS Studio and Unicleo-GUI latest versions?
I'm using an IMU ISM330BX on my electric bicycle, and I want to detect while I'm cycling, if I'm ascending or descending a climb, and then calculate which is the angle in degrees or percentage of the slope. For this I'm using Sensor Fusion Function SFLP, which combines accelerometer and gyroscope data, and using the Gravity Vector to calculate the Pitch.When I'm static, not moving the bicycle forward or backward, just lift the front wheel while the rear wheel touches the ground, simulating pedaling uphill. The results are quite good and I can calculate the pitch and transform to degrees.The problem rise when I'm pedalling, then exists acceleration and decelerations, in this situation I can not distinguish if there is a slope (positive or negative) because these accelerations forces are masking the pitch. I tested different filter options trying to acquire the best results, but It doesn't matter which filter option I choose that always I found the same problem.I attached a pic
Hello. I'm using STM32H747XI with touchgfx designer 4.24.2 and Free RTOS 10.3.1. In this RTOS I setup some threads(with osPriorityNormal 24) and a Periodic Timer at 400ms. I notice that when I start this thread void threadEntryPoint() { // Pulisco la FIFO del'RX USART __HAL_UART_FLUSH_DRREGISTER(BARCODE_UART); char msg[BARCODE_LENGTH+1]; while (;;) { memset(msg, 0, sizeof(msg)); // Appena vedo il primo carattere ... if ( HAL_UART_Receive ( BARCODE_UART, (uint8_t*)&msg[0], 1, 50 ) == HAL_OK ) { // ... ricevo gli altri HAL_UART_Receive ( BARCODE_UART, (uint8_t*)&msg[1], BARCODE_LENGTH - 1, 50 ); if (strchr(msg, BARCODE_SUFFIX)) { queue.put(msg); } } } } Timer will not trigger. Is the reason that I have no osDelay ? Or a priority question ? Thankyou in advance.
Dear ST Support,I have two questions regarding the STM32H7S78-DK board.1. Is it possible to retrieve the original factory application that comes preloaded on the STM32H7S78-DK? I’ve already flashed my own project, but as expected, this process erased the factory-provided firmware.2. I tried programming the board using a BSP example selected via STM32CubeIDE’s Example Selector. However, the IDE fails to upload the example to the board. A pop-up briefly appears and then disappears, with no further feedback. Even when the board is disconnected, STM32CubeIDE doesn’t display any error or warning that the board is not connected.Interestingly, when I run my own project, everything works as expected. The board is correctly flashed, and when it’s disconnected, I do receive the expected “ST-LINK not detected” message.Best regards
Hi everyone,I need some guidance on building a real-time face recognition pipeline on the STM32MP2 platform.My requirements:Reliable face detectionGood, consistent face embeddingsDecent FPS on MP2Preferably ONNX or pure CPU, since heavy frameworks aren’t idealMinimal external dependenciesNo reliance on TensorFlow or PyTorchI’m looking for suggestions on:Which face detector works best on MP2 (YUNet / SCRFD / BlazeFace / SSD)?Which embedding model (ArcFace, MobileFaceNet, SFace, etc.) performs well on CPU?Any recommended ONNX + OpenCV DNN pipelines that others have successfully run on MP2?Tips for optimizing inference speed on this hardwareIf anyone has experience or working examples, it would really help me understand the right direction to build a practical, efficient solution.Thanks in advance!
Hi team, I provisioned both OEM1 and OEM2 keys. I locked the device using OEM2 key and then put the device in RDP level 2 with the below commands:STM32_Programmer_CLI.exe -c port=SWD mode=hotplug -lockRDP2 0xFEDCBA98 0x76543210Response: "Lock RDP2 password successfully done"Enable RDP2: STM32_Programmer_CLI.exe -c port=SWD mode=hotplug -ob RDP=0xCCIf you see here I used only <word1> and <word2> for password because I followed the below video for STM32U5:URL: https://www.youtube.com/watch?v=B3l6iuA7U8Q&t=752sBut STM32U3 series uses 128 bits of password rather than 64 bits used by STM32U5 series.Could anyone know/share default value that will be passed if we have missed <word3> and <word4>.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.