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

Resolved! CubeMX MDF/ADF Driver for STM32U3 does not build

Hi,I have a project working on a STM32U5 and I was curious to port it to STM32U3 to see the differences in power consumption.I have built the project for the STM32U3 with CubeMX with the firmware packet "FW_U3 V1.1.0" , which is currently the latest ...

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_...

CMake Build Issue with STM32H563ZI

Hi ST team, Been trying to build a bare bones MX generated project for the STM32H563ZI using CMake, for both TrustZone and non-TrustZone Projects. Had the same issue on both Ubuntu22.04 and Ubuntu24.04, and am unable to compile any of these projects....

lachjet by Associate II
  • 354 Views
  • 6 replies
  • 0 kudos

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
  • 169 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
  • 119 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
  • 401 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
  • 315 Views
  • 7 replies
  • 3 kudos