rtc_get_reset_reason() is now 7 (TG0WDT_SYS_RESET), not 5 (DEEPSLEEP_RESET) as it always was.
I recall there being a bug in revision 0 esp32, and there was a workaround to avoid a WDT reset after a wakeup. It worked well, but not any more. I installed a fresh battery but the bad result stayed. The messages of my app clearly show that I go into deep sleep for 1 minute and on wakeup (after 1m as expected) the reset reason is 7.
Did the handling of this issue change? Do I need to add something to sdkconfig to enable the workaround? This is what my config says about WDT:
Code: Select all
CONFIG_INT_WDT=y
CONFIG_INT_WDT_TIMEOUT_MS=300
CONFIG_INT_WDT_CHECK_CPU1=y
CONFIG_TASK_WDT=y
# CONFIG_TASK_WDT_PANIC is not set
CONFIG_TASK_WDT_TIMEOUT_S=5
CONFIG_TASK_WDT_CHECK_IDLE_TASK=y
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y
Thanks