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

Edit the auto-generated code in CubeMX

Is there a way to edit the auto-generated code in CubeMX, such as in the function below?please see the code below:void MX_USART2_UART_Init(void) { /* USER CODE BEGIN USART2_Init 0 */ /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_...

STM32H563ZI porting RN8302B issue

1.这一套硬件第三方开发已实现porting RN8302B,现在自己开发发现无法工作,线路图如下:2.在MX里配置没有像F103那样的项目,如下为H563的SPI配置3.导入RN8302B 驱动编译通过后, 发现无法读取到RN8302B deviceID,串口打印信息为0XFFFFFFFF:   

bowman_0-1752027412561.png bowman_1-1752027958965.png bowman_2-1752028060616.png
bowman by Associate
  • 264 Views
  • 1 replies
  • 0 kudos

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
  • 185 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
  • 467 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 III
  • 515 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
  • 435 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
  • 482 Views
  • 3 replies
  • 1 kudos