Skip to main content
GHolc.1
Associate III
November 10, 2021
Solved

How to setup internal regulator with CubeMX on STM32H755

  • November 10, 2021
  • 2 replies
  • 1212 views

I'm using CubeMX 6.3.0 with a STM32H755 micro. The cube mx generated code assumes a HAL_PWREx_ConfigSupply( ) setting that is not correct for my hardware. Is there a place to configure this setting? I notice PWR is setup under Power and Thermal but it doesn't look like there is a spot to pick SMPS or LDO there.

My hardware requires it set to HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY) and this is very important. When set for SMPS, which my hardware doesn't support, the core shuts down and not even the JTAG interface is working at that point. There is a work around to do a mass erase to recover but it isn't obvious.

This topic has been closed for replies.
Best answer by TDK

The setting is in System Core -> RCC.

0693W00000GXCKcQAP.png

2 replies

TDK
TDKBest answer
November 10, 2021

The setting is in System Core -> RCC.

0693W00000GXCKcQAP.png

"If you feel a post has answered your question, please click ""Accept as Solution""."
GHolc.1
GHolc.1Author
Associate III
November 10, 2021

Thank you TDK, that is exactly what I was looking for.