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

qu1j0t3
Posts: 3
Joined: Sun Feb 18, 2024 2:17 am

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

Postby qu1j0t3 » Sun Mar 17, 2024 2:10 am

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

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Sun Mar 17, 2024 3:38 am

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.

qu1j0t3
Posts: 3
Joined: Sun Feb 18, 2024 2:17 am

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

Postby qu1j0t3 » Sun Mar 17, 2024 4:38 am

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.)

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 198 guests