I have application that after waking up from deep sleep has to go back to sleep but noticed that Reset Reason is not consistent:
RESET caused by ESP_RST_POWERON
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_TASK_WDT
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_TASK_WDT
RESET caused by ESP_RST_TASK_WDT
RESET caused by ESP_RST_SW
RESET caused by ESP_RST_SW
RESET caused by ESP_RST_DEEPSLEEP
RESET caused by ESP_RST_SW
RESET caused by ESP_RST_SW
RESET caused by ESP_RST_DEEPSLEEP
....
The same code works well on other Lilygo board.
I have suspicion that something is not finishing on time when I go to sleep but adding delay didn't change anything.
My code:
`
epd_poweroff_all();
long SleepTimer = sleepDuration * 60;
esp_sleep_enable_timer_wakeup(SleepTimer * 1000000LL);
SerialPrintln("Going to sleep for " + String(SleepTimer) + "-secs ");
SerialPrintln("Awake for : " + String((millis() - StartTime) / 1000.0, 3) + "-secs");
SerialPrintln("Starting deep-sleep...");
esp_deep_sleep_start();
`
Any ideas how to get consistent ESP_RST_DEEPSLEEP?
Hi all,
I have application that after waking up from deep sleep has to go back to sleep but noticed that Reset Reason is not consistent:
RESET caused by ESP_RST_POWERON RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_TASK_WDT RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_TASK_WDT RESET caused by ESP_RST_TASK_WDT RESET caused by ESP_RST_SW RESET caused by ESP_RST_SW RESET caused by ESP_RST_DEEPSLEEP RESET caused by ESP_RST_SW RESET caused by ESP_RST_SW RESET caused by ESP_RST_DEEPSLEEP ....
The same code works well on other Lilygo board. I have suspicion that something is not finishing on time when I go to sleep but adding delay didn't change anything. My code:
` epd_poweroff_all();
`
Any ideas how to get consistent ESP_RST_DEEPSLEEP?
Thanks