Skip to main content
Christian Zingl
Associate II
Jul 8, 2021 9:14 AM UTC
Solved

STM32CubeMX configures MCU to use SMPS instead of LDO

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.

This topic has been closed for replies.
Tilen MAJERLE
Tilen MAJERLEBest answer
ST Employee
Jul 8, 2021 10:18 AM UTC

Setting is available under RCC configuration.

2 replies

Tilen MAJERLE
Tilen MAJERLEBest answer
ST Employee
Jul 8, 2021 10:18 AM UTC

Setting is available under RCC configuration.

Christian Zingl
Associate II
Jul 8, 2021 11:11 AM UTC

Thank you very much! Indeed it is there.