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.
2025-02-27 2:07 PM
> Is there a simple method to transition from Run Mode to LP Sleep Mode by 'passing' through LP Run Mode?
You can only transition to LP Sleep from LP run.
> After waking up from LP Sleep Mode, where does code execution continue?
The only arrow out of LP sleep leads to LP Run. That is the state it's in after it wakes up.