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!
deep sleep behavior
Re: deep sleep behavior
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: deep sleep behavior
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.
Re: deep sleep behavior
I played around a bit with the deep sleep mode. But sofar I'm also missing good documentation.
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;) ).
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.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 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;) ).
-
- Posts: 30
- Joined: Thu Jun 29, 2017 7:10 pm
Re: deep sleep behavior
Hi,
Your sample with deep sleep stub combined with timer would be usefull.
Thanks,
Your sample with deep sleep stub combined with timer would be usefull.
Thanks,
Who is online
Users browsing this forum: No registered users and 102 guests