Page 1 of 1

Continue after wake up

Posted: Thu Mar 02, 2017 3:34 pm
by Gerald Hilderink
When the ESP32 wakes up after a deep sleep, it performs a reset. How can I make the ESP32 continue after a wake up? Is there a wake stub example that restores the CPU state?

Re: Continue after wake up

Posted: Thu Mar 02, 2017 4:33 pm
by ESP_igrr
Deep sleep is a sleep mode where the RAM is powered off. You may save some of it in RTC RAM, but there's not enough of it to save all of the application state. So things such as memory allocator state, RTOS state, driver state have to be initialized from scratch.

Re: Continue after wake up

Posted: Thu Mar 02, 2017 5:20 pm
by Gerald Hilderink
I understand. What I am looking for is some sort of hibernation or light sleep. Is there a light sleep mode for the ESP32? This is documented for the ESP8266, but this is undocumented for the ESP32. It's only mentioned in the ESP32 Datasheet, Espressif Systems, August 25, 2016.