deep sleep behavior

lynxIce
Posts: 1
Joined: Fri Nov 04, 2016 4:05 pm

deep sleep behavior

Postby lynxIce » Tue Nov 15, 2016 11:15 am

Hi!
Anyone having an idea what is happening with the module during deep sleep? will it wake on interrupt? is the state after a wake up equal to the state after a system-reset? Or will it continue where it last left of?

I'm kind of confused of how the deep sleep work, hope someone can spread some light!

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: deep sleep behavior

Postby kolban » Tue Nov 15, 2016 11:13 pm

Does this documentation page help any?

http://esp-idf.readthedocs.io/en/latest ... -stub.html
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: deep sleep behavior

Postby WiFive » Wed Nov 16, 2016 1:36 am

Wake stub helps for what to do after wakeup but not how to set triggers for wakeup itself. The RTC subsystem is capable of many things not to mention the LPC.

davidi
Posts: 2
Joined: Sat Oct 29, 2016 11:45 am

Re: deep sleep behavior

Postby davidi » Thu Nov 17, 2016 10:33 am

I played around a bit with the deep sleep mode. But sofar I'm also missing good documentation.
will it wake on interrupt? is the state after a wake up equal to the state after a system-reset? Or will it continue where it last left of?
If I understand it correctly during deep sleep only the RTC is on and only the RTC memory will remain powered. The RTC can wake up the rest of the system based on: A timer expiring, a configured level on one of the RTC GPIO's or by the ULP-coprocessor. Since most memory is shut down the main CPU will start as if it was reset. But the ESP-IDF does have to option to run a stub upon wake from deep sleep, as already pointed out above. And anything you save in the RTC memory will be retained over deep sleep.

I did manage to get the module into deep sleep mode and out of deep sleep by timer. But I'm currently stuck trying to wake on GPIO. See this post

It would be great if someone from Espressif could provide a little bit more information, or the missing documentation(like the missing Power Management chapter referenced by the TRM;) ).

ginodecock
Posts: 30
Joined: Thu Jun 29, 2017 7:10 pm

Re: deep sleep behavior

Postby ginodecock » Mon Jul 03, 2017 12:33 pm

Hi,

Your sample with deep sleep stub combined with timer would be usefull.

Thanks,

Who is online

Users browsing this forum: No registered users and 93 guests