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

We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault except...

Aimen1 by ST Employee
  • 762 Views
  • 0 replies
  • 1 kudos

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
  • 1632 Views
  • 5 replies
  • 7 kudos

[BUG REPORT] STM32CubeMx 6.16 STM32U5A5

When enabling 2 ADCs ,  ADC1 and ADC2 of  STM32U5A5 ,both in Independent mode . The RCC enabling in MspInit called only for ADC1 and not for ADC2. What causes , that If one decide disable generataion of call to MX_ADC1_Init() in CubeMx , in order to ...

b3pr0 by Associate II
  • 253 Views
  • 4 replies
  • 2 kudos

CubeMX no longer generates BLE Notification functions

Hello Community,I have been working on a BLE project with one service and three characteristics, two of which have server notification properties, and I have noticed the following issue in CubeMX 6.15 (server side, custom template).The function Custo...

LucaP by Associate III
  • 660 Views
  • 9 replies
  • 1 kudos

STM32CubeMX bug

Hi, When I create a new project on STM32CubeMX, it either freezes when I try to set up some peripherals, or I just get a blank screen when I try to reopen the porject after generating the code. I have tried rolling back to an older version, completel...

SamVDA by Associate II
  • 344 Views
  • 6 replies
  • 1 kudos

IC20Div has no effect on clock tree

Hy,I try to configure MCO2 as adjustable clock out. For evaluation I use STM32N6 DK and STM32CubeMX 6.16.0 and STMCubeIDE 2.0.0I use all different settings and it works fine, but IC20 div setting has no effect. When I compare generated code, I see no...

harald_0-1765796043486.png
harald by Associate III
  • 217 Views
  • 2 replies
  • 0 kudos

Misleading Warnings

Hi,Recently, updated to 6.16.1 on Linux.On a fresh project i get the "misconfiguration warning" when i hit "GENERATE CODE" (I use CMake Toolchain). See Screenshot: There you will see simple config for RCC. Got a "green check" symbol but i always get ...

b3rtl by Associate II
  • 475 Views
  • 2 replies
  • 0 kudos

Problemes Cube MX and FreeRTOS on STM32U5

English belowPlusieurs problèmes avec X-CUBE-FREERTOS.1.2.0 , 1.3.1 , 1.4.0 et suivant (MDK-ARM) :1) Si je ne met pas TOTAL_HEAP_SIZE à au moins le double que nécessaire, les dernières taches déclarées dans CubeMx ne sont pas exécutée . Aucune alerte...

Markko67 by Associate II
  • 267 Views
  • 3 replies
  • 1 kudos

Line endings - bug in CubeMX, all versions

Code generated by CubeMX use Windows line-endings, which generate huge problems under other operating systems (repository, editors, etc.). You have to strip CR-LFs after every code generation.Somebody should use standard method of platform-independen...

trzeci by Associate III
  • 2583 Views
  • 15 replies
  • 6 kudos

Resolved! Cannot download STM32CubeMX

Attempting to download the new STM32CubeMX 2.0 (required since not included in STM32CubeIDE anymore) does not work from your site.https://www.st.com/content/st_com/en/stm32cubemx.html# has links all over the page to "Download STM32CubeMX"...Unfortuna...

Screenshot 2025-12-10 at 13-07-56 STM32CubeMX Graphical tool - STMicroelectronics.png Screenshot 2025-12-10 at 13-09-49 STM32CubeMX Graphical tool - STMicroelectronics.png