-->
Page 1 of 1

Watchdog timer board reboot

PostPosted: Fri Jul 15, 2016 11:49 am
by Jim2386
Hi guys,

I have an ESP8266 + Huzzah from adafruit. I'm using it to monitor a temperature and I do not have access to the board easily so it is running 24-7. I need it to be able to recover from lockups on its own.

I've used 32U4 boards and activated the watchdog timer to reboot the board if a WDT reset hasn't occurred in a set time but the same code does not work for the ESP8266. Is there any example code or data sheets describing how to activate a watchdog timer + hardware reset?

Thanks
Jim

Re: Watchdog timer board reboot

PostPosted: Tue Jul 19, 2016 4:29 am
by eriksl
The esp8266 has a watchdog timer, only it's reset by the SDK code when it runs (and that is when your code returns). So you can't use it for your own purposes. But you might consider a hardware solution where a certain output pin needs to be cycled every once in a while and if it's not, the reset pin is pulled.