[Problem] ets Jan 8 2013,rst cause:4, boot mode:(3,7)
I tried to resolve the reseting problem with the previous issues here. But I already correct all the pins ( GPIO0 pulled up, GPIO15 pulled down, rst and ch_pc also pulled up) and the problem continues. So I checked the supply, but I'm using a lm1117 and the voltage provided its also correct.
Some issue before talked about disabling the watchdog ( ESP.wdtDisable();), I tested and the problem persists.
After the problem line appears:
wdt reset load 0x4010f000, len 1264, room 16 tail 0 chksum 0x42 csum 0x42 ~ld
Anyone knows what can I do to fix it?
So how do you get to trigger that problem? Please post some code that triggers it. The issue as explained could not be understood.
Sorry. I'm trying to use the WebClient example to send the temperature from my work space. So I just changed the value sent and the frequency of upload data.
The code is:
#include <ESP8266WiFi.h>
const char* ssid = "------------------------";
const char* password = "-------------------";
const char* host = "data.sparkfun.com";
const char* streamId = "G2NoXQalpKHjJ0ZvM7GL";
const char* privateKey = "----------------------------------";
void setup() {
Serial.begin(115200);
delay(10);
// We start by connecting to a WiFi network
//ESP.wdtDisable();
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
int temp = 0;
void loop() {
temp = analogRead(A0); // reading sensor
temp = temp * 0.09765625; // costance (1/1024*100)
// ++value;
Serial.print("connecting to ");
Serial.println(host);
// Use WiFiClient class to create TCP connections
WiFiClient client;
const int httpPort = 80;
if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}
// We now create a URI for the request
String url = "/input/";
url += streamId;
url += "?private_key=";
url += privateKey;
url += "&value=";
url += temp;
Serial.print("Requesting URL: ");
Serial.println(url);
// This will send the request to the server
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" +
"Connection: close\r\n\r\n");
delay(10);
// Read all the lines of the reply from server and print them to Serial
while(client.available()){
String line = client.readStringUntil('\r');
// Serial.print(line); // Not using this message yet
}
Serial.println("time");
delay(20000); // Just send every 20 seconds
Serial.println("closing connection");
Serial.println();
}
Check this out maybe we have the same issue. https://github.com/esp8266/Arduino/issues/1342
Also I have added a large capacitor (470uF) across the Vcc and Gnd rails
OP, did you find a solution for this? wdt_disable() DOES NOT WORK, but it DOES seem to feed the watchdog. 8 seconds after wdt_disable(), watchdog will always time out.
having same problem wdt reset load 0x4010f000, len 1264, room 16 tail 0 chksum 0x0f csum 0x0f ~ld
Be sure that your power supply is strong and stable enough. To get it working with stm32f0discovery board I had to get:
- an external voltage source (12V, 1A max),
- voltage stabilizer to 5V (radiator may be required),
- voltage stabilizer to 3V3,
- 2200uF(?!) electrolytic capacitor on 3V3, as close as possible to esp8266 power supply pin. This capacitor may be way to big, but I am only prototyping and want things to work.
- 100nF ceramic capacitor as close as possible to esp8266 power supply pin.
and it finally worked.
- Note about my circuit - power section was located on prototyping board, while esp8266 was connected through 20cm wires.
- Note about stabilizers - also connect to them some capacitors as their datasheets say.
- Note about big capacitor - esp8266 may work with smaller capacitor, just test it. Electrolytic capacitor should have low impedance.
I have the same problem, and can't get rid of it. I am close to throw all ESP8266 away and go for another IoT system on chip. I can't get this running stable: https://github.com/cnlohr/esp8266ws2812i2s I use a PC power supply with 3.3V capable to drive 25A. Also added some ceramic capacitors to VCC and 3.3V directly on the pins of the Nodemcu accumulating now in up to ~3700µF. From time to time (~~ every 20 minutes ) the chip resets with the following serial output: ets Jan 8 2013,rst cause:4, boot mode:(3,7) wdt reset load 0x4010f000, len 1264, room 16 tail 0 chksum 0x0f csum 0x0f ~ld
I feel soo helpless now, because everything else works fine. Meanwhile i Have also added some other hadware and software featrues and made a new website to control pumps for a bar mixing app. Is there anything else to debug and look deeper? Maybe there really is a bug in the Fastled Library or any other lib used in the example? I use Arduino 1.6.5.
Thanks for any hints. Andreas
@Captayne
Do you have issue with application from https://github.com/cnlohr/esp8266ws2812i2s or "Fastled Library" from https://github.com/FastLED/FastLED?
Actually, I don't know. I just experience the crashes. If someone can give me a hint, to track down the reboots, I would be more than lucky.
Andreas/Captayne
----- Ursprüngliche Nachricht ----- Von: "Krzysztof" [email protected] Gesendet: 28.05.2016 19:59 An: "esp8266/Arduino" [email protected] Cc: "Captayne" [email protected]; "Mention" [email protected] Betreff: Re: [esp8266/Arduino] [Problem] ets Jan 8 2013,rst cause:4, boot mode:(3,7) (#1328)
@Captayne
Do you have issue with application from https://github.com/cnlohr/esp8266ws2812i2s or "Fastled Library" from https://github.com/FastLED/FastLED?
You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/esp8266/Arduino/issues/1328#issuecomment-222321264
I now have changed the power supply to another PC power supply, with lots of amps on 3.3V. But reboots still occur occassionally. Always this shows up in the usb serial monitor: ets Jan 8 2013,rst cause:4, boot mode:(3,7) wdt reset load 0x4010f000, len 1264, room 16 tail 0 chksum 0x0f csum 0x0f ~ld What does room 16 mean? The websocket error event results in #1006. (quite clear.)
Of cause I can reconnect easily from JScript, but this in not a honest solution.
Any idea? Can the code be buggy, resulting in such an error? If the code is buggy, then the beaviour should be little more deterministic and not with crashes from time to time. Website and ESP do communicate in 10Hz frequency. all works fine without any overlap until the ESP crashes. I have swapped the NodeMCU Devboard with 5 others without any change. I put it from my PCB design back into the protoyping board with no change in behaviour. Has somebody similiar problems? Is there a possiblity to ad more detailed output on what the system crashes? Memory leak/ Nullpointer assignement/ memory read error / invalid instruction/ page error (I think rather not, as there is no paging).... ? uh!? Any hints? Thank you soo much.
@Captayne,
- If not done already, you may check recommendations here
- To verify if watchdog timer resets may be caused by your application, I would load one of example sketches that is using WiFi, e.g. WiFiWebServer.ino and leave it running for couple of hours.
Krzysztof
I was facing this problem and it was fixed by changing Tools>Upload Speed to 115200. And Flash Size to 4M(3M SPIFFS).
eset ets Jan 8 2013,rst cause:4, boot
eset ets Jan 8 2013,rst cause:2, boot
add this code slove problem all reset ets_intr_lock(15); // all intruptt off ets_wdt_disable();
I have same issue. How can I specifically add ESP-07 to boards available on Arduino IDE?
I'm using this setup:
http://ediy.com.my/blog/item/133-upload-sketch-to-the-esp8266-esp-07-esp-12-using-arduino-ide
was able to fix this by changing the Digital Pin Assignment of my onewire device to D4, and my DHT sensor pin assignment to D6. it did not like the previous pin assignments. nodemcu v1.0
I had same problem and same message. I was trying to set the D8 to INPUT. Changed to 0, everything ok now :)
Guyyyyyyys! Problem solved! Connect an external power source to Arduino and it should work just fine! I plugged an 9v 1A and at same moment it came to work!
@cesarcardinali I"m not sure i follow. Did you mean you plugged in an external power source to your esp8266 to get it to work?