Watchdog timer in ESP32 board manager v3.0.x - Demo / Example - Version imprimable +- F1ATB forum (https://f1atb.fr/forum_f1atb) +-- Forum : My F1ATB Forum (https://f1atb.fr/forum_f1atb/forum-1.html) +--- Forum : Home Automation (https://f1atb.fr/forum_f1atb/forum-7.html) +--- Sujet : Watchdog timer in ESP32 board manager v3.0.x - Demo / Example (/thread-174.html) |
Watchdog timer in ESP32 board manager v3.0.x - Demo / Example - F1ATB - 01-07-2024 Watchdog timer in ESP32 board manage 3.0x changes a lot from previous implementation. Here is a simple example how to implement it (Arduino IDE). One key point is to set a delay of minimum 1 ms after the : esp_task_wdt_reset(); delay(1); // <------------------------------ Mandatory Here after the example to be tested: - watchog is set to 25s - In a cycle of 20 s. The reset is done the first 10s, then no reset during 10s. - After 60s no reset at all the system will crashes and restart at 75s. Regards F1ATB Code : #include <esp_task_wdt.h> |