Page 1 of 1

Feed hardware watchdog timer while in deep sleep

Posted: Thu Jan 24, 2019 6:46 am
by newb
Is it possible to feed hardware watchdog timer such as STWD100 while esp8266 is in deep sleep? Depending on the particular model the WDT's maximum timeout is between 2.24ms and 142ms, but I put my esp8266 for about 30min in deep sleep. I assume you can't work with the esp8266 pins while it's in deep sleep?

Re: Feed hardware watchdog timer while in deep sleep

Posted: Thu Jan 24, 2019 7:39 am
by kevinkk525
No you can't work with anything on the esp8266 while in deep sleep. That's why it's called deep sleep.

Re: Feed hardware watchdog timer while in deep sleep

Posted: Thu Jan 24, 2019 8:24 am
by newb
Thanks, Kevin. On a second thought, any hangs would happen while esp8266 is working, not in deep sleep mode, so feeding the hardware WDT wouldn't be a problem. Am I right?

Re: Feed hardware watchdog timer while in deep sleep

Posted: Thu Jan 24, 2019 8:33 am
by kevinkk525
You should feed the hardware WDT when the esp is running and disabled it before deep sleep if it supports it.

Re: Feed hardware watchdog timer while in deep sleep

Posted: Thu Jan 24, 2019 2:01 pm
by newb
..and disabled it before deep sleep if it supports it
Aha! Thanks for the idea :D