2025-02-27 8:16 AM
Hello, the STM32G0 low-power state diagram (Figure 8 below) is in the ref. manual RM0444 on page 127.
It shows that a direct transition from Run Mode to LP Sleep Mode is not possible.
Questions:
* Is there a simple method to transition from Run Mode to LP Sleep Mode by 'passing' through LP Run Mode?
* After waking up from LP Sleep Mode, where does code execution continue?
Reason for the question:
Our application needs a low-power mode where the MCU is turned off (no communication with external devices), but can wake up within approx. 500 ms and begin executing at a specific point in the firmware.
Thank you!
2025-02-27 9:21 AM
@Kmax18 wrote:* After waking up from LP Sleep Mode, where does code execution continue?
Depends on how you enter the LP mode:
If you use the WFI or WFE instructions, then execution continues as normal.