The board reset and will not connect to the my access point.
please i need help.
I added ESP.wdtDisable(); ESP.wdtEanble( …); and ESP.wdtFeed();
but still, the problem persist.

I updated the firmware to esp8266-20170526-v1.9.bin but no success.
//////////////////////////////////////////////////////////////////////////////////////////////////
This is the print on my terminal when the board reset.
//////////////////////////////////////////////////////////////////////////////////////////////////
ets Jan 8 2013,rst cause:4, boot mode:(3,2)

Please edit your post and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Exactly which board are you using, and what settings are you using when you upload your sketch?

avong:

I updated the firmware to esp8266-20170526-v1.9.bin but no success.

That doesn’t achieve anything, as it’s immediately overwritten when you upload the sketch. The standard firmware is only used when the device acts as a Wi-Fi modem for another board, in AT mode.

Do you have anything connected to your board - any sensors etc? If you do then remove them and flash a straightforward code example from Sketch Builder - without any of the WDT stuff, as it shouldn’t be necessary.

Thanks,
I am using NodeMCU ESP8266 -12
The flash speed 112500
CPU Frequency 160MHz
Few minutes ago, i discovered, if i call pinMode(3, OUTPUT); for pin 3 & 4, it work fine. but when i did it pinMode(relay1, OUTPUT); and int relay1 =3; as global variable. the error resurface.

hi blynkers!
the esp8266 mcu is widely used in iot projects. however, most gpio pins on this mcu have special / multiple functionality and are not safe to use in all circumstances.
these “features” are still not well documented and not explained in a friendly manner for newbies. i see lots of cases when the “issues” are simply caused by not knowing which pins to use in which case.
[esp8266 pin features]
here is a basic table for startup. i’ve collected the info from various sources on the in…