-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[Problem] ets Jan 8 2013,rst cause:4, boot mode:(3,7) #1328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. The code is:
|
Check this out maybe we have the same issue. |
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 |
Be sure that your power supply is strong and stable enough. To get it working with stm32f0discovery board I had to get:
and it finally worked.
|
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 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. Thanks for any hints. |
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 ----- 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. |
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: 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. |
Krzysztof |
I was facing this problem and it was fixed by changing Tools>Upload Speed to 115200. |
eset ets Jan 8 2013,rst cause:4, boot add this code slove problem all reset |
I have same issue. |
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. |
Guyyyyyyys! Problem solved! |
@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? |
Sometimes cheap power sources can make that arduino behaves in an erratic mode. |
@isaiasmoioso Exactly! Buy an external power source capable of 1000mA and it should work just fine. |
I was having the same issue while my power supply was just fine. Solved it by using a different USB to Serial adapter. FTDI adapters brought up this issue (while also making trouble during programming from time to time) whereas I had no issues using a CP2102 adapter. You might want to give this a try... |
fwiw - I found this thread while searching for the cause of my continual ESP8266 reboots - the "rst cause:2, boot mode:(3,7)" messages out the serial port at 74880 baud - followed by repeated diagnostics, only to repeat. My issue, is that I believe my programming method was forcing in corrupted code into the ESP8266. The solution for me? Hold down the "Flash button" while programming. Previously I had been using VisualMicro to program the NodeMCU via the UART. (the UART handles the flash control automagically) I knew I had a good device, as I could successfully program it via the UART. However I wanted to use a JTAG debugger such as the Segger or Olimex with VisualGDB - but could never get it to work with the NodeMCU. (I spent a ridiculous amount of time before I found this solution). While googling, I came across this: https://nodemcu.readthedocs.io/en/master/en/flash/#putting-device-into-flash-mode I had never needed to press the flash button, as the USB connection would do that for me automatically. But with JTAG I no longer had this luxury! Note that the flash button needs to be held down before power is applied to the ESP8266. Hopefully this will help someone else & save you a few hours... |
lol 74880, what was that like the insta-obsolete V.32fast? lol anyway i gotta tell you, i have bought about 10 nodemcu's from ebay, and it seems half were 'legit' and the other half we cheap knockoffs that did not do so well in the 'serial communication' and overall 'works great' departments. Some would work fine with the arduino 1.6x IDE and a standard stupid usb cable, others would just fight me to load a firmware. I think the cheapie chinese knock offs are a problem. The only way i could visually disingush between the two, the 'print' on the big ESP8266 chip on the fake NodeMCU's from ebay was visually rough and 'falling off'. Check yours, do you have the same cheap paint on your ESP8266 chip on your NodeMCU? |
and YES YOU MUST SUPPLY EXTERNAL POWER if you want to run anything other than a LED off of the pins of a NodeMCU |
Guys, after almost a year of doing nothing on my project, which came from little demotivation, and speculating about errorfixing in the IDE and libraries by others, ... Tadaaa! No reboots occour anymore! WebSocket connection remains stable, and the ESP runns like hell for the first hours . |
I've got resets when trying to use quite large local array. In my case it was bool a[150][150]. IDE doesn't produce any warning during compilation in this case. When I made that array global I've got the warning on possible instability due to low memory but in the end there were no real problems and at least I know now what I should optimize to make things better. |
Try: |
Having some issues with the ESP8266-01 by uploading the sensor data to the localhost. The below shows the issues when I open the Serial Monitor in the Arduino ` ets Jan 8 2013,rst cause:4, boot mode:(1,0) wdt reset |
Try changing your code to use a different gpio pin
…Sent from my iPhone
On Dec 8, 2018, at 8:54 AM, frustrat01 ***@***.***> wrote:
Having some issues with the ESP8266-01 by uploading the sensor data to the localhost.
The below shows the issues when I open the Serial Monitor in the Arduino
` ets Jan 8 2013,rst cause:4, boot mode:(1,0)
wdt reset
`
By the way, I have tried using the WiFiClient example to upload the dummy data to the localhost and it works. But it cannot work with uploading the sensor to the localhost.
Please help me to get rid of this issue ASAP
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@lagunacomputer Can you give the example for this because I still new to this Arduino and ESP8266-01. |
Pretty sure esp8266 only has 2 gpio pins, looks like you are trying to use more than actually available, I bet the code works on a Uno or a mega because they support more pins
“#define in 7
#define out 8define #trigPin 10 #define echoPin 13 #define relay 2 #define led 6 //red color #define led2 A0 //yellow color #define led3 9”
…Sent from my iPhone
On Dec 8, 2018, at 10:12 AM, frustrat01 ***@***.***> wrote:
@lagunacomputerI don't understand what you mean. Can you give the example for this because I still new to this Arduino and ESP8266-01.
the below text file is my Arduino source code for this
ESP8266_upload.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello everyone, the wdt reset is caused by entering infinite loop!Entering infinite loop(while) will trigger reset in a second, the reason is that the loop is blocking and esp8266 needs to keep WiFi connected and lots of other background things running. example: |
17:34:15.107 -> this is being displayed on my COM port instead of showing IP Address. How can i resolve this issue? |
Change to a different pin, use different PIN numbers in your code
…Sent from my iPhone
On Jan 22, 2019, at 4:15 AM, devimeruva ***@***.***> wrote:
17:34:15.107 ->
17:34:15.107 -> ets Jan 8 2013,rst cause:4, boot mode:(1,6)
17:34:15.107 ->
17:34:15.107 -> wdt reset
this is being displayed on my COM port instead of showing IP Address. How can i resolve this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It's documented If you don't solve your problem read and follow this: |
@devimeruva post code? |
#include <ESP8266WiFi.h>
#include <LiquidCrystal.h>
#include <EmonLib.h>
EnergyMonitor emon1; // Create an instance
LiquidCrystal lcd(12,11,5,4,3,2);
const char* ssid = "Zunik Energies Pvt Ltd";
const char* password = "zunik1234";
WiFiServer server(80);
void setup() {
Serial.begin(9600);
Serial.setDebugOutput(true);
lcd.begin(20,4);
emon1.voltage(2,2313.26,1.7);
emon1.current(1,58.1);
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.write(13);
server.begin();
Serial.println(WiFi.localIP());
}
void loop() {
WiFiClient client = server.available();
if (!client) {
return;
}
Serial.println("new client");
while(!client.available())
{
delay(1);
}
emon1.calcVI(20,2000);
emon1.serialprint();
unsigned int long timemillis = millis();
unsigned int long time = millis();
float realPower = emon1.realPower;
float apparentPower = emon1.apparentPower;
float supplyVoltage = emon1.Vrms;
float Irms = emon1.Irms;
float powerFactor = (realPower/ apparentPower);
lcd.setCursor(4,0);
lcd.print ("EnergyMonitor");
lcd.setCursor(0,1);
lcd.print("V = ");
lcd.print (supplyVoltage);
lcd.setCursor(9,1);
lcd.print("I = ");
lcd.print(Irms);
lcd.setCursor(0,2);
lcd.print("Powerfactor = ");
lcd.print(powerFactor);
lcd.setCursor(0,3);
lcd.print("Units(kWh) = ");
lcd.print(abs(realPower*time)/abs(1000*3600));
String web = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n";
web += "<html>\r\n";
web += "<body>\r\n";
web += "<h1>ENERGY MONITOR</h1>\r\n";
web += "<p>\r\n";
web += "V=\r\n";
web += Serial.print(supplyVoltage);
web += "I=\r\n";
web += Serial.print(Irms);
web += "Powerfactor =\r\n";
web += Serial.print(powerFactor);
web += "Units(kWh) = \r\n";
web += Serial.print((realPower*time)/abs(1000*3600));
web += "</body>\r\n";
web += "</html>\r\n";
client.print(web);
}
…On Thu, Jan 24, 2019 at 5:38 PM KiLLAAA ***@***.***> wrote:
@devimeruva <https://github.com/devimeruva> post code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1328 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ar1OGNgZyIOIIVPPZllz0ELbQW3HJ-Z1ks5vGaJJgaJpZM4G8wvV>
.
|
#include <ESP8266WiFi.h> const char* ssid = "Zunik Energies Pvt Ltd"; void setup() { void loop() { ENERGY MONITOR\r\n";web += " \r\n"; web += "\r\n"; client.print(web); |
The problem are in the the Third Party library EmonLib ---> https://github.com/openenergymonitor/EmonLib/blob/master/EmonLib.cpp It's not fixed for ESP8266. There are a |
@devimeruva the problem is that you need to use proper (ported) library for esp8266.. |
Hi ! I don't know if someone will see my message but, I had the same error and I think I found my problem. |
Thanks you so much for your help!! |
I have solved it !!,
May be helpfull Thanks : |
I have this issue: I assigned all Nodemcu pins with D5, D6 etc.. like that in code but for one pin I assigned 1 (GPIO1, for nodemcu TX pin). I changed that Pin to D3 and program started working fine for me. |
Thanks @rashey04ec !! The trick was to use GPIO number, like in this image: https://alselectro.files.wordpress.com/2017/10/nodemcu_pins1_thumb.jpg?w=517&h=441 |
i solved change it the pin, i was 7 and 8 and change it to 2 and 4 and word fine |
I solved the restarting problem by attaching a big 2200uF capacitor close to the ESP Module, I think the cheap power supplies don't have a fast transient response to sudden peaks, certain functions require a high peak current for a very short time. In my case, I was using this cheap power supply module I bought from Aliexpress which I think was the culprit I compensated for the problem by using a big cap. Below is the error code that was repeating again and again after each restart. ets Jan 8 2013,rst cause:4, boot mode:(3,4) 2nd boot version : 1.7(5d6f877) correct flash map |
I solved it by specifying a different flash size. |
Damn, delay(1) in void loop does the trick. Thank you sir! |
I solved the problem verifying my setup function. If any line is crashing inside setup function, your watchdog will crash too. |
Hi. |
I found this note in the docs, and I think this was the problem for me:
https://arduino-esp8266.readthedocs.io/en/latest/reference.html#digital-io I changed my pin definition to use |
It solved for me guys by putting delay in the loop function Good luck! |
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?
The text was updated successfully, but these errors were encountered: