-->
Page 1 of 1

WDT always calls for reset

PostPosted: Fri Mar 25, 2016 11:24 am
by nicorubbini
Hi everyone!
I'm working on a school project and I'd like to use an ESP8266-01.
The thing that is driving me crazy is that I'm unable to make my code work.
With the examples file included in the Arduino IDE the program runs flawlessly but when I make any adjustment to the code , or even write a new one, the Watchdog Always calls a reset.
Any solution?

Re: WDT always calls for reset

PostPosted: Sat Mar 26, 2016 4:47 am
by Barnabybear
Hi, welcome to the world of the ESP8266. Have a look at this guide, in particular 'yielding'. It explains WDT reset far better than I could.

Re: WDT always calls for reset

PostPosted: Sat Mar 26, 2016 10:07 am
by picstart
Watch dog reset WDT is a hardware protection for errant software. It is expected to reset the micro processor. The watch dog is for protection against frozen (glitched) software it will time out unless reset by software.
If the software is running as expected then the coder will reset the watchdog before it times out. Upon reset after a WDT the software should check for the cause and safely resume as the coder dictates.

Re: WDT always calls for reset

PostPosted: Sun Mar 27, 2016 5:40 am
by nicorubbini
I've discovered that by programming the ESP with a baudrate of 921600 instead of 115200 all the codes run flawlessly :D .
Maybe it was a flash problem?