STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.17.0 released

We are pleased to announce that version 6.17.0 of STM32CubeMX is available. What is new in 6.17.0: Added support for new microcontrollers across the STM32WBA, STM32H5, and STM32U3 seriesAdded support for new boards: NUCLEO-WBA25CE1, NUCLEO-H5E5ZJ, ST...

Aimen1 by ST Employee
  • 1250 Views
  • 0 replies
  • 2 kudos

STM32CubeMX 6.17.0 breaks FreeRTOS

I upgraded to 6.17 this morning an have already had to roll back due to a bug in how it now generates fiels for FreeRTOS.Under the FreeRTOS (Include parameters) options I have this vTaskDelayUntil set to Enabled.  This now changes the define name in ...

Simon by Associate II
  • 470 Views
  • 6 replies
  • 1 kudos

STM32CubeMX unable to generate STM32CubeIDE project.

Hello, I got following problem.STM32CubeMX is unable to properly generate .project file for STM32CubeIDE. After clicking "GENERATE CODE", MX is copying library files, generating .h and .c files, but no .project file. Following nullpointer exception c...

Kopytko by Associate
  • 435 Views
  • 4 replies
  • 1 kudos

Resolved! Unable to generate FreeRTOS code after migration

Hi ST,I have a STM32H7 project with FW_H7_v1.12.1 and MX v6.16.1, everything is good so far.But after migration to FW_H7_v1.13.0, I can't generate FreeRTOS code any longer.All FreeRTOS-related code are deleted and MX stay loading icon when I click FR...

stm32h7r7 linker misaligment?

Hi there,I've been using the STM32H7R7 device (BGA225), but I ran into an issue. I used the TochGFX (4.26) to generate the gfx_task, and after that, I configured the cubemx (6.17), but somehow the linker was not good. Even my code could not be built ...

STM32H7 SYSCLK stuck at 64 MHz (HSI), PLL not switching

I am using an STM32H7 MCU and configuring the system clock to 400 MHz using CubeMX. The clock tree shows SYSCLK = 400 MHz, and MCO2 is configured to output SYSCLK.However, when I debug:HAL_RCC_GetSysClockFreq() returns 64 MHzRCC->CFGR shows SWS = 0 (...

Screenshot 2026-03-23 at 1.54.35 PM.png Screenshot 2026-03-23 at 2.02.04 PM.png Screenshot 2026-03-23 at 12.46.26 PM.png Screenshot 2026-03-23 at 12.51.18 PM.png
shri7 by Associate
  • 203 Views
  • 1 replies
  • 0 kudos

Resolved! STM32CubeMX does not generate UART clock init

Code generation of the attached .ioc file (copy of ST example file of similar name) does not generate clock init for UART4.  This means the example application hard faults.  I see no reason why the UART clock should not be initialised here and would ...

ADunc.1 by Senior II
  • 165 Views
  • 1 replies
  • 1 kudos

Resolved! Able to program board despite "Debug: Disable" setting

Please use English on this forum.Translated: The development board is STM32H723, using stm32cubemx for development, debug is disabled, using stlink to burn found that it can be burned, and it can also be debugged, which is very strange! (The developm...

zzzaizz by Associate III
  • 478 Views
  • 11 replies
  • 4 kudos

ADC triggered by HRTIM

Hi,I am using the STMH745 MCU and trying to synchronize the ADC trigger to HRTIM. For HRTIM I set the "ADC Trigger Configuration" as given in figure HRTIM.jpg - it defines only a SINGLE trigger. However, in ADC configuration (figure ADC.jpg), TWO HRT...

kkolek by Associate
  • 222 Views
  • 1 replies
  • 1 kudos