2025-06-08 5:03 AM
Hi,
I'm trying to move stm32WL to a mode it will consume least power but still be usable for me.
I understood this mode is probably STANDBY_MODE with memory retention
I want to do this:
1. [Save Stack For Standby] save the stack and any other needed info to the retention area
2. set an external clock that will wake the CPU
3. go into STANDBY_MODE with memory retention
4. when the time comes - the CPU wake and identify in main that we were in standby
5. [Recover From Standby] - to get into the main loop, right after the standby function
I some very limited function from ST, and they all seem to do the same,
meaning - ignore the RAM retention potential, and starting from scratch.
How can I maximize that potential?
found no example for this.
anyone can help?