Continue after wake up

Gerald Hilderink
Posts: 3
Joined: Thu Mar 02, 2017 3:27 pm

Continue after wake up

Postby Gerald Hilderink » Thu Mar 02, 2017 3:34 pm

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?

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Continue after wake up

Postby ESP_igrr » Thu Mar 02, 2017 4:33 pm

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.

Gerald Hilderink
Posts: 3
Joined: Thu Mar 02, 2017 3:27 pm

Re: Continue after wake up

Postby Gerald Hilderink » Thu Mar 02, 2017 5:20 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 214 guests