i will continue to debug , trying to find the conflict that is generating this (non random) reset , but just won’t to check as this probably happened to others first .
WDT is the watchdog timer - how much time are you spending in setup? And what code are you having this problem with? (Post to http://gist.github.com, please)
Thank you both for the comments ,
Daniel, it goes beyond setup , it reaches the main loop and in fact executes the first three led effects, as soon as the next one begins , it resets with that message, and always at the same point .
So the watchdog timer fires when the system spends too long doing something and doesn’t get to reset the watchdog timer - you might have something that is spinning for too long or disabling interrupts for too long.
@Daniel_Garcia is it possible to disable the wdt? ,I saw some recommendations on this direction but the instruction mentioned is not implemented. In the arduino code version.( is there but does nothing),
I know it may hide the real problem but is a quick way to confirm if this is the case …
Daniel, in the code I call a function on the loop to execute all the effects , so it goes for long time out of the loop , could that be the problem . .? ,
Probably - the watchdog timer has nothing to do with wifi - it’s a way for the system to detect if it has locked up. If you aren’t going to exit loop for a long time you should find out how to reset the watchdog timer.
So thats what it is!!! Many times i have had my esp8266 crash with a similar message when i had a tight loop with no delay. Soon as i put in a delay(1) it works…looks like disabling WTD sounds like a plan!
I believe the ESP has a hardware timer so it can’t be fully disabled but calling yield() or delay(1) will reset the timer so add a small delay in your loop as Leon suggested to help.
thank you,
i think i have all the pieces now , will first transform my functions call in a better “non-blocking” way, so the code will return to the main loop more frequent , in case that is not enough, will add Yield() on specific code locations , will do tomorrow …