2020-11-24 08:35 AM
Question seems simple enough, but i cant find any information on this in the datasheet or refman:
When i put the mcu in stop-mode using the hal driver, i call this function:
HAL_PWR_EnterSTOPMode(PWR_MAINREGULATOR_ON, PWR_STOPENTRY_WFI);
The first parameter of this function can be either PWR_MAINREGULATOR_ON or PWR_LOWPOWERREGULATOR_ON.
The function seems to set the LPDS bit in PWR_CR register based on that parameter. According to the reference manual, this means:
0: Voltage regulator on during Stop mode.
1: Low-power Voltage regulator on during Stop mode.
That is not enough information to decide what i should go with for my application.
"Low-power Voltage regulator" implies that the MCU consumes less power in this mode. How much less? And what is the down-side of using the Low-power Voltage regulator?
Solved! Go to Solution.
2020-11-25 04:10 PM
It increases the wakeup latency. I couldn't see any other downside.
2020-11-25 04:10 PM
It increases the wakeup latency. I couldn't see any other downside.
2020-11-30 10:54 PM
Cool. im ok with that. Thanks for your reply
2024-03-12 11:47 AM
I can't find one working code example from STM, all are out of date, function and flag names out of date, or missing files for certain HAL definitions such as PWR_CPUCR_RETDS_CD
Another ST-Mess!