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
  • 1606 Views
  • 0 replies
  • 2 kudos

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
  • 270 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
  • 219 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
  • 644 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
  • 270 Views
  • 1 replies
  • 1 kudos

stm32f334 HRTIM STM32CubeMX bug

Hi. I want to use the A HRTIM timer to independently control two MOSFETs. Namely, I have a transformer with the midpoint connected to the positive pole of the power supply, and these two transistors switch the 2 halves of the winding as lower switche...

ATymo1_0-1765047172541.png
ATymo.1 by Associate II
  • 777 Views
  • 3 replies
  • 1 kudos

Resolved! Inconsistent pin naming

I've always found it a little irritating:#define CLK_A_Pin GPIO_PIN_0 #define CLK_A_GPIO_Port GPIOFWhy is it deemed necessary to have "GPIO" in one, but not the other? Surely, that should be either:#define CLK_A_GPIO_Pin GPIO_PIN_0 #define CLK...

stm32h503xx Clock ..

Hello, I am using the STM32H503 MCU. When I configure the pins as follows:PB2 → OUTPUTPA8 → TIM1_CH1PB7 → I2C1_SDAIn the RCC section, I get red warnings for Master Clock Output1 (MCO), LSCO clock output, and SAI1 External clock. I cannot disable thes...

r2-d2 by Associate
  • 315 Views
  • 3 replies
  • 4 kudos