Skip to main content
Christian Zingl
Associate II
July 8, 2021
Solved

STM32CubeMX configures MCU to use SMPS instead of LDO

  • July 8, 2021
  • 2 replies
  • 1677 views

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.
Best answer by Tilen MAJERLE

Setting is available under RCC configuration.

2 replies

Tilen MAJERLE
Tilen MAJERLEBest answer
ST Employee
July 8, 2021

Setting is available under RCC configuration.

Christian Zingl
Associate II
July 8, 2021

Thank you very much! Indeed it is there.