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

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

Wrong value for RCC_CFGR_SWS_LSE

Hello,A set of new constants have been added to stm32g070xx.h by CubeMX v6.15.0, and one of them has the wrong value (at line 4200):#define RCC_CFGR_SWS_LSE (0x00000100UL) /*!< LSE used as system clock */According to the datasheet, the right value fo...

NPaqu.1 by Associate II
  • 67 Views
  • 2 replies
  • 0 kudos

Resolved! ADC initialization uses wrong constant for internal path

The following line of code is generated by CubeMX v6.14.0.202502271554 for a STM32G070RBTx using FW Package v1.6.2:LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_AWD_CH_VREFINT_REG|LL_ADC_AWD_CH_TEMPSENSOR_REG);The constants us...

NPaqu.1 by Associate II
  • 335 Views
  • 2 replies
  • 1 kudos

Bug in STM32CubeMX with COMP

For COMP1 on STM32G0 here are the pin assignments from the reference manualI want PA1 and so I've chosen that in the STM32CubeMXHowever, the generated code sets and the value of InputPlus is  /** @defgroup COMP_InputPlus COMP input plus (non-invertin...

Carl_G_0-1750644467047.png Carl_G_1-1750644553274.png Carl_G_2-1750644605926.png Carl_G_4-1750644871312.png
Carl_G by Senior II
  • 196 Views
  • 7 replies
  • 3 kudos

Resolved! CubeMX STM32G0B1 ThreadX CMake

I created a project in CubeMX for STM32G0B1. I added ThreadX middleware. I chose "Add necessary library files as reference..." I generated a CMake project. It was good, it worked fine. After a few weeks of work and dozens of regenerations CubeMX leav...

varghamp by Associate II
  • 286 Views
  • 5 replies
  • 2 kudos

Resolved! STM32H562 SRAMx_ECC wrong description in CubeMX

HiWe work on a project with a STM32H562. We use STM32CubeMX Version 6.14 with the Firmware Package V1.5.0 to generate a STM32CubeIDE project on Windows 11. I just found a wrong description in CubeMX.The description for SRAM2_ECC, SRAM3_ECC and BKPRAM...

MMeie3_1-1744271578960.png MMeie3_0-1744271548478.png
MMeie.3 by Associate III
  • 289 Views
  • 3 replies
  • 1 kudos

Resolved! STM32H562 configuring SRAM13_RST does not work in CubeMX

HiWe work on a project with a STM32H562. We use STM32CubeMX Version 6.14 with the Firmware Package V1.5.0 to generate a STM32CubeIDE project on Windows 11. I think I just found bug in the code generation of CubeMX.I could reproduce the bug below in a...

MMeie3_4-1744271120049.png MMeie3_3-1744271019293.png
MMeie.3 by Associate III
  • 343 Views
  • 3 replies
  • 1 kudos