Post topics, source code that relate to the Arduino Platform

User avatar
By andornot
#24953 Hi:

I have seen a similar error when I tried to access pin numbers that did not correspond to GPIO pins on my NodeMCU (Amica) ESP8266 dev board. Executing this instruction ...

pinMode(6, OUTPUT);

will generate a reset and the following text will be returned to the serial port ...

ets Jan 8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld


The same result occurs when I try to set pins 7, 8 and 11 as output. Your error message is a bit more involved. I'm running Arduino IDE 1.6.5-r2 (with 32-bit Windows 7) and have the board "NodeMCU 1.0 (ESP-12E Module)" selected. This appears to be a critical selection. I cannot program my device with ANY of the other ESP8266 options offered by the boards manager. To get the "NodeMCU 1.0 (ESP-12E Module)" I had to install an additional boards manager. Under preferences, I put in an additional boards manager URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json and installed it from the boards manager. You can see details of how to set up additional boards here: https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide.

Good luck.
User avatar
By JvK
#25075 As mentioned in another post: the problem is caused by the esp having no time to deal with the WDT (Watch Dog Timer), you can solve is by adding a delay(1) to your programm in the loop or at a point where it waits more than 10 ms, for instance in my programm i have changed while (Serial.read()!='1'); (wait till the user sends a '1') to while (Serial.read()!='1') delay(1); (give delay(1) while the user is not sending a '1') and problem solved