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! OctoSPI delay block code unnecessarily generated

Hi Everyone,I noticed that CubeMX (version 6.14.0) generates a call to HAL_OSPI_DLYB_SetConfig in octospi.c even though I have configured the OctoSPI to bypass the delay block.Is it safe to just remove any Delay Block related code?Is this a bug in Cu...

tzijnge by Associate II
  • 429 Views
  • 2 replies
  • 0 kudos

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

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
  • 207 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
  • 158 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
  • 434 Views
  • 2 replies
  • 1 kudos