Counting WDT events

Hi all. I am using Arduino IDE and ESP32.
I would like to count the number of WDT events.

Is it possible to read a register that retains this info,.
I will then and add event to a counter (in EEPROM).

I have setup my WDT like below.

#include <esp_task_wdt.h>
#define WDT_TIMEOUT 600


void pat_theDog()
{
  /esp_task_wdt_reset();// Reset WDT before times out.
}

Thank you
Regards

Why?

If there is a way it's in here, https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/index.html.

ESP32 WDT's are a sign of program failure.

Yes! And I want to know haw many times is has failed.
Regarding the API docs. I am afraid that is too complicated for me.
What I really need is a more specific answer. preferably and example!
Regards

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.