cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup internal regulator with CubeMX on STM32H755

GHolc.1
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

The setting is in System Core -> RCC.

0693W00000GXCKcQAP.png

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate III

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