Page 1 of 1

Can't stop watchdog reset (devkit C v4, ESP32-WROOM-32D)

Posted: Sun Mar 17, 2024 2:10 am
by qu1j0t3
Hi,

I'm using ESP-IDF 5.2.1 with a DevKit C v4, ESP32-WROOM-32D board.

I am getting watchdog timer resets but I was expecting per documentation that the runtime would disable it before calling app_main() when the BOOTLOADER_WDT_DISABLE_IN_USER_CODE option is NOT set.

Also, calling rtc_wdt_disable() in app_main explicitly does not stop the resets.

Any ideas?

Thanks

Re: Can't stop watchdog reset (devkit C v4, ESP32-WROOM-32D)

Posted: Sun Mar 17, 2024 3:38 am
by ESP_Sprite
The watchdog is there for a reason; rather than trying to kill it, you're generally better off figuring out why it's unhappy in the first place.

[Solved] Re: Can't stop watchdog reset (devkit C v4, ESP32-WROOM-32D)

Posted: Sun Mar 17, 2024 4:38 am
by qu1j0t3
OK, I figured out there is a separate "task watchdog", and was able to disable that in menuconfig: Component config -> ESP System Settings -> Enable Task Watchdog Timer (ESP_TASK_WDT_EN)

(The reason any of these watchdogs would fire is because I am in tight loops testing various functionality and it's pointless to explicitly reset them in the loop.)