Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By Oripy
#40927 Dear all,

On my project I use an ESP8266 (which is on a NodeMCU development board), programmed using arduino code.

I am running on an issue where sometimes the watchdog wakes up and reset the board. I'm not happy about it and would like to solve the issue, but it is not the reason of this post.

The reason of this post is that when the watchdog reset the board, sometimes it won't boot and hang in flash mode state because the output of GPIO0 is LOW instead of HIGH (thanks to the pull-up resistor). In my code I'm using GPIO0 as an output, and it all depends on the state of this GPIO0 before the crash.

Is there a way to ask the watchdog to execute some code before reboot? That way I could maybe set the PIN to HIGH before the reboot and ensure that the board boots properly.

I've found this blog post that states the same issue, but unfortunately doesn't comes with a solution.

Thank you