cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX configures MCU to use SMPS instead of LDO

Christian Zingl
Associate II

Dear ST community,

there seems to be a bug in the latest version of the initialization code creator. I'm using STM32Cube IDE Version: 1.6.1 Build: 9958_20210326_1446 (UTC) with the included STM32CubeMX 6.2.1.20210324. The firmware package is STM32Cube FW_H7 V1.9.0 and the MCU reference is STM32H7A3ZITx. The particular MCU is STM32H7A3ZIT6 (not the Q version with integrated SMPS)

The bug: Every time when creating the code from STM32CubeMX, the supply is configured to use the SMPS instead of the LDO:

HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY);

This flag does not exist and I need to manually correct it to

HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);

It only happens since i updated to the latest version of STM32CubeMX.

Does anyone experience the same? I cannot find a relevant setting in the STM32CubeMX GUI.

1 ACCEPTED SOLUTION

Accepted Solutions
Tilen MAJERLE
ST Employee

Setting is available under RCC configuration.

View solution in original post

2 REPLIES 2
Tilen MAJERLE
ST Employee

Setting is available under RCC configuration.

Christian Zingl
Associate II

Thank you very much! Indeed it is there.