cancel
Showing results for 
Search instead for 
Did you mean: 

How to change power supply configuration in an example?

SRugg.1
Associate

I am using the example for a LWIP HTTP server, given by STM here. However, the clock configuration configures the supply to be PWR_LDO_SUPPLY. However, my board is configured to accept PWR_SMPS_DIRECT_SUPPLY, and I do not have the tools to reconfigure my board. Could someone explain how I can change this option in the example? I tried doing it directly but it has way more dependencies elsewhere and there is no .ioc configuration to generate it automatically.

I am new to STM32 boards and lower level MCU in general, so please keep that in mind.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @SRugg.1​ ,

You just have to replace HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY) ; by HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY) ; in the SystemClock_Config() function.

Take a look at this link it might be helpful.

BeST Regards,

Walid

View solution in original post

1 REPLY 1

Hello @SRugg.1​ ,

You just have to replace HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY) ; by HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY) ; in the SystemClock_Config() function.

Take a look at this link it might be helpful.

BeST Regards,

Walid