Feed hardware watchdog timer while in deep sleep
Feed hardware watchdog timer while in deep sleep
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?
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Feed hardware watchdog timer while in deep sleep
No you can't work with anything on the esp8266 while in deep sleep. That's why it's called deep sleep.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: Feed hardware watchdog timer while in deep sleep
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?
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: Feed hardware watchdog timer while in deep sleep
You should feed the hardware WDT when the esp is running and disabled it before deep sleep if it supports it.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: Feed hardware watchdog timer while in deep sleep
Aha! Thanks for the idea..and disabled it before deep sleep if it supports it