How to wake ESP32 from hibernation by RTC?

janbenes
Posts: 4
Joined: Wed Feb 17, 2021 2:18 pm

How to wake ESP32 from hibernation by RTC?

Postby janbenes » Wed Feb 17, 2021 2:23 pm

Hello, I have not found any documentation on this. Can someone please share example how to properly configure hibernation and rtc in order to wake ESP32 by the rtc?

Thank you, Jan

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: How to wake ESP32 from hibernation by RTC?

Postby ESP_Sprite » Thu Feb 18, 2021 1:34 am

Did you already look at the esp-idf deep sleep example included in esp-idf?

janbenes
Posts: 4
Joined: Wed Feb 17, 2021 2:18 pm

Re: How to wake ESP32 from hibernation by RTC?

Postby janbenes » Fri Feb 26, 2021 12:32 pm

Hello, thank you. I am aware of deep sleep and I use it. The question is how to wake by RTC from hibernation. Hibernation is not deep sleep. Jan

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: How to wake ESP32 from hibernation by RTC?

Postby ESP_Sprite » Mon Mar 01, 2021 2:59 am

You mean 'hibernate mode' as discussed here?. From what I remember, the ESP automatically goes into hibernate mode if you do not configure the ULP to run and do not define RTC memory contents. (I got confused because 'hibernate mode' is not a term Espressif uses in ESP-IDF; there's just 'deep sleep' with various power domains enabled or disabled.)

janbenes
Posts: 4
Joined: Wed Feb 17, 2021 2:18 pm

Re: How to wake ESP32 from hibernation by RTC?

Postby janbenes » Mon Mar 01, 2021 8:34 am

Thank you. So if no ULP and RTC memory is defined, the chip should take about 2.5µA and still be able to wake-up by timer or GPIO interrupt. Interesting, I will try that. Thank you!

Who is online

Users browsing this forum: No registered users and 10 guests