Esp32S3 : Questions concerning the WatchDogs

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : Questions concerning the WatchDogs

Postby ThomasESP32 » Fri Jun 23, 2023 12:49 pm

Good afternoon,

I have some questions concerning the WatchDogs. Could you please help me on the subject ?

In the Esp32S3 Technical Reference manual, in the WatchDog Timers chapter, I can see
that there are 4 Watchdogs :
1) Main System Watchdog Timer 0.
2) Main System Watchdog Timer 1.
3) RTC Watchdog Timer.
4) Super Watchdog.

Then, it is written that during the Flash Boot : MWDT in Timer Group 0 et RWDT are automatically enabled.
Stage0 for MWDT is configured for resetting the Core and stage0 form RWDT is configured for resetting the System (Main System and RTC). It is also written that two registers must be cleared to stop the protection procedure (After that, MWDT and RWDT can be configured by software) !!

First question : Could you please explain me how are used these two watchdogs ? Why two watchdogs are configured ? Is there any explaination (Why not just one ?) ?

Second question : On the Espressif Website, it is written that there are 3 watchdogs (IWDT, TWDT and XTWDT). Moreover, it is written that IWDT is based on (Watchdog Timer in group 1) and TWDT is based on (Watchdog Timer in Group 0). Here, there is no reference to RWDT (That is mentioned in the Technical Reference Manual). So I am a little bit lost...

Finally, what are the Watchdogs that are automatically started when the Firmware is started ??
Thank you for your answers !

Best regards,

Thomas TRUILHE

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Re: Esp32S3 : Questions concerning the WatchDogs

Postby ThomasESP32 » Fri Jun 23, 2023 1:10 pm

Moreover,
I do not see any watchdog option in the SDKConfig file.

Finally, when the boot procedure is finished and my firmware is running,
which watchdogs are running and why ? (At the moment, I do not feed anything in my program. Is it normal ?).

What do I have to do in order to monitor my program using a Watchdog starting from scratch.
Could you please explain me ?

Best regards,

Thomas TRUILHE

watchit_dog
Posts: 1
Joined: Fri Oct 06, 2023 4:30 pm

Re: Esp32S3 : Questions concerning the WatchDogs

Postby watchit_dog » Fri Oct 06, 2023 4:34 pm

Did you ever figure this out?
I have tried using `esp_task_wdt_add` and `esp_task_reset` as a watchdog, but found that it did not work when that task got blocked.

Who is online

Users browsing this forum: rsimpsonbusa and 95 guests