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.16.0 released

We are pleased to announce that STM32CubeMX 6.16.0 release is available. What is new in 6.16.0: Added support for new microcontrollers across the STM32WBA, STM32N6 and STM32H5 series and the STM32WL3x product line. The related new boards include the...

Aimen1 by ST Employee
  • 1013 Views
  • 5 replies
  • 7 kudos

Resolved! STM32C092FCP6 SPI, SCK Pin remapping by CubeMX

Hello,when doing code generation by CubeMX, it seems, that there's no Pin-remapping done in certain cases, at STM32C092FCP6.In my case, I chose SPI2 in master full-duplex mode. SPI2_CLK is on PB8 at Pin1. A remapping from PB7 to PB8 has to be done by...

Screenshot 2025-09-04 155052.png
CBa by Associate
  • 239 Views
  • 1 replies
  • 1 kudos

Resolved! STM32CubeIDE PA3 Alternate Function Bug

Hi, There is a blatant bug in the STM32CubeIDE that has costed me a board iteration on a professional product. It says that pin PA3 is positive comparator input. When it isn't. Look here This is what the datasheet says.  

danielbathtub_0-1756991198601.png danielbathtub_1-1756991295544.png

STM32G0 minimum ADC frequency

I'm configuring an STM32G031, using the STM32CubeMX perspective in STM32CubeIDE.  I want to optimise for low power consumption.  My device uses the ADC and I see the ADC has a minimum acceptable frequency, 140kHz according to the data sheet (data she...

GrahamAU by Associate II
  • 820 Views
  • 4 replies
  • 0 kudos

Resolved! Bugs in the Memory Management Tool of STM32CubeMX v6.15.0

Hi,I am using the following environment and found two bugs.OS : Ubuntu 20.04 LTSSTM32CubeMX : 6.15.0Toolchain / IDE : CMakeBoard : NUCLEO-H563ZIBug 1 : After reconfiguring the memory address and size with Memory Management Tool following code generat...

Fumihiko by Associate II
  • 921 Views
  • 2 replies
  • 2 kudos

STM32H7xx ThreadX with HAL, bug in HAL_InitTick

function HAL_InitTick() in generated code from STM32Cube IDE does not register the TimeBase_TIM_PeriodElapsedCallback after HAL_TIM_Base_Start(&htim6). it just returns the result if Timer Start.setting up the callback is done after this but never rea...

weak attribute needed in app.freertos.c

in app_freertos.c, the hook prototypes are not all defined as __weak.  This requires either deleting those prototypes or rewriting them with the __weak attribute to avoid multiple definitions when they're actually used in user code.  I generally do n...

What is the recommended alternative to using HAL?

The ST docs all refer me back to using HAL with CubeMX however I see many suggesting staying away from it.I could not find where to download and use libraries such as CMSIS for my STM32F407G Disco board Are the libraries I need already in my CubeIDE ...

LMorr.3 by Senior II
  • 7429 Views
  • 11 replies
  • 5 kudos