How to get hibernate?
Posted: Wed Sep 20, 2017 7:13 pm
Hi!
There is in docs written that the Hibernate mode has all domains off, and only RTC Timer still on.
I use the follofing code:
to get the hibernation mode.
And debug output is showing:
Why RTC_SLOW_MEM is still ON? How to turn off all power domains?
There is in docs written that the Hibernate mode has all domains off, and only RTC Timer still on.
I use the follofing code:
Code: Select all
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
esp_deep_sleep_enable_timer_wakeup(((uint64_t) sec) * 1000000);
esp_deep_sleep_start();
And debug output is showing:
Code: Select all
D (133238) deepsleep: RTC_PERIPH: AUTO(OFF), RTC_SLOW_MEM: ON, RTC_FAST_MEM: ON