(solved) unable to enter deep sleep
Posted: Wed Oct 24, 2018 5:23 pm
Hi all -
I'm attempting to enter deep sleep mode when the following conditions are met:
1. Line power is removed (running on battery)
2. Battery voltage drops below a certain threshold.
I'm successfully invoking the code below:
And here's what happens:
What could be waking me up? I don't want anything but line power to wake me up, and I'm not restoring line power in my testing.
I'm attempting to enter deep sleep mode when the following conditions are met:
1. Line power is removed (running on battery)
2. Battery voltage drops below a certain threshold.
I'm successfully invoking the code below:
Code: Select all
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_XTAL, ESP_PD_OPTION_OFF);
ESP_LOGI(TAG, "shutdown(): entering deep sleep.");
vTaskDelay(1);
esp_deep_sleep(0xffffffffffffffff);
Code: Select all
I (4289) PowerMgr: shutdown(): entering deep sleep.
I (12) boot: ESP-IDF v3.1-dirty 2nd stage bootloader
I (12) boot: compile time 10:05:01