ESP32 and external watchdog problems / questions
Posted: Wed Apr 08, 2020 5:57 am
Hi All...
I have a board with an ESP32 and an STWD100 watchdog timer chip. The WDT is connected to the ESP EN pin through a jumper, which was included to make debugging easier. The WTD's EN pin is not used, as connecting it to the ESP32 could defeat its purpose. The timeout on the WDT is 1.6 seconds and this works very well. My code has no trouble feeding it. Until it's time to boot.
When the jumper is in place (as intended for production) the ESP32 is rebooted by the WDT while it is booting because the boot takes too long. This is a nasty loop. The ESP32 is running Mongoose OS and I have already turned off the boot messages in an attempt to speed the boot, but it was not sufficient.
As I think about it, if wonder if the WDT is a good idea. Aside from the boot time, I'm wondering if it will cause problems during OTA updates, and if it will prevent the ESP from being placed in deep sleep.
I would like to include the WDT in the final board design but I don't know how to solve these problems. I would appreciate thoughts and suggestions.
Thanks...
I have a board with an ESP32 and an STWD100 watchdog timer chip. The WDT is connected to the ESP EN pin through a jumper, which was included to make debugging easier. The WTD's EN pin is not used, as connecting it to the ESP32 could defeat its purpose. The timeout on the WDT is 1.6 seconds and this works very well. My code has no trouble feeding it. Until it's time to boot.
When the jumper is in place (as intended for production) the ESP32 is rebooted by the WDT while it is booting because the boot takes too long. This is a nasty loop. The ESP32 is running Mongoose OS and I have already turned off the boot messages in an attempt to speed the boot, but it was not sufficient.
As I think about it, if wonder if the WDT is a good idea. Aside from the boot time, I'm wondering if it will cause problems during OTA updates, and if it will prevent the ESP from being placed in deep sleep.
I would like to include the WDT in the final board design but I don't know how to solve these problems. I would appreciate thoughts and suggestions.
Thanks...