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