-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
ets Jan 8 2013,rst cause:4, boot mode:(3,6) #1809
Comments
Is this the same as #1335? |
Also would be cool if you provide the link to the source of HX711_Init function, since it is obviously causing issues. |
SPIFFSImpl: allocating 512+180+1400=2092 bytes |
thanks ,the code is : SCK = sck; |
i removed the hx711_init(),but the exception still happend |
I tried compiling your example, but I am getting an error that connectWifi is not defined. Also in your hx117_init function, read function is not defined. Could you please post the complete source code? |
If you are getting an exception, please post the exception message here and decode it using EspExceptionDecoder tool. https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.md |
https://github.com/bogde/HX711 sorry,My chip is 13 |
I use 1.6.5 (SDK2.0.0)to recompile, it is working fine Exception occurs when WIFI connecting |
Solutions? |
Any solution ? tutorial ? |
Same with my ESP-12 using the AT commands firmware (boot1.2). |
Got this same problem: #include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
MDNSResponder mdns;
char ssid[] = "ssid"; // your network SSID (name)
char pass[] = "pass"; // your network password (use for WPA, or use as key for WEP)
ESP8266WebServer server(80);
String webPage = "<!DOCTYPE html><html><head><title>Remote Controlled Vehicle</title><script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js\"></script></head><body><center><img src=\"http://192.168.1.100/?action=stream\" /><div id=\"panel\" style=\"color:#f2f2f2;height:100px;width:100%;\"></div></center><script>global.$ = require(\"jquery\");require(\"jquery-touch-events\");$(\"#panel\").bind(\"swipeup\", function(e){$.post(\"/\",{task:'f'});});$(\"#panel\").bind(\"swipedown\", function(e){$.post(\"/\",{task:'b'});});$(\"#panel\").bind(\"swipeleft\", function(e){$.post(\"/\",{task:'l'});});$(\"#panel\").bind(\"swiperight\", function(e){$.post(\"/\",{task:'r'});});$(\"#panel\").bind(\"swipeend\", function(e){$.post(\"/\",{task:'h'});});</script></body></html>";
PROGMEM const int l=7,r=6,f=5,b=4,h=3;
void setup() {
Serial.begin(115200);
Serial.println("yesss");
pinMode(f, OUTPUT);
pinMode(b, OUTPUT);
pinMode(l, OUTPUT);
pinMode(r, OUTPUT);
pinMode(h, OUTPUT);
digitalWrite(f, LOW);
digitalWrite(b, LOW);
digitalWrite(l, LOW);
digitalWrite(r, LOW);
digitalWrite(h, LOW);
Serial.println(WiFi.begin(ssid, pass));
delay(2000);
Serial.println(WiFi.status());
Serial.println(mdns.begin("sayak", WiFi.localIP()));
server.on("/", [](){
if(server.hasArg("task"))
{
String task=server.arg("task");
digitalWrite(f, LOW);
digitalWrite(b, LOW);
digitalWrite(l, LOW);
digitalWrite(r, LOW);
digitalWrite(h, LOW);
if(task=="h") digitalWrite(h,HIGH);
else if(task=="f") digitalWrite(f,HIGH);
else if(task=="b") digitalWrite(b,HIGH);
else if(task=="l") digitalWrite(l,HIGH);
else if(task=="r") digitalWrite(r,HIGH);
return;
}
server.send(200, "text/html", webPage);
});
server.begin();
Serial.println("yesss");
}
void loop() {
server.handleClient();
} |
Works after changing |
And for those of us who are less psychic, where would I go to change this PROGMEM const int?? |
Ditto, would be nice to know exactly where to change PROGMEM. Few things I already searched, my Arduino IDE folder and this location where the IDE places upgraded libs: C:\Users\myuser\Documents\Arduino I also found PROGMEM referenced in ArduinoJson lib which seems to say that PROGMEM is only available in AVR architecture which contradicts what we have with the ESP8266 (non-AVR): My project (SmartThings generic HTTP driver/Device-Handler controlling 2 relays & more) is much larger than the few concise samples posted above but this error is killing me and made me put in reboot logic, occurring every 8 hours; pathetic solution... posting that reboot sample below for others to reference but it's a crappy workaround and we'd love to get this figured out, please elaborate on the proposed fix.
|
What is the meaning of this "boot mode:(3,6)"?? |
Read the documentation before asking something already explained or do it at www.esp8266.com http://arduino-esp8266.readthedocs.io/en/latest/boards.html#boot-messages-and-modes |
@lrmoreno007 thax yo... That is what I was looking for my whole day... You saved my day... |
Hi, I am also getting same isssue but only while using "Wifi.config()" to set static IP. If I am not using this...my code is working fine. But with this...I am getting this issue. Can anyone please help?? |
Hi I am getting the same problem in a D1 mini (ESP8266 based board). "ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset When i go the webpage to know which is the problem here, i find: That reset cause 4 is watchdog reset, and the modes are:
So my personal guess is that my D1 mini is in " flashing mode" right? So the issue is to put it in the "running mode" right? Any suggestion on where to look to do that? (I am not very proefficient in this things ..) |
This looks like user error due to use of wrong pins, or use of 3rd party lib that wasn't supported for the ESP. |
Absolutely, after the same error, my code worked perfectly, without any need for better POWER-SUPPLY.... |
Ah, yes. It was wrong pin numbers in my case. Thanks. |
Issue solved: Hardware used: ESP-12F Debug Messages: ets Jan 8 2013,rst cause:4, boot mode:(3,6) Reason(in my case): Solution: |
Once I had a similar problems, not sure if the same. it turned out that I was not declaring properly the pins. For instance, PIN 1 in the arduino IDE code, is not PIN 1 in the D1 mini. I just looked the pinmap change the pins and it worked OK. |
@Kondenado thanks, I also moved from Uno to D1. Your suggestion solved my issue! |
Maybe you are not using the right version of the Library. |
@msalik42 you should read the comments from @junwoo091400 "In ESP8266, if you access [...] a null pointer [...], the program goes into watchdog reset." I would recommend you double-check all variables and pin numbers, make sure they have been initialised and have correct values. |
I'm facing the same problem of many people with the reboot of the esp8266 board. |
rst cause:4, boot mode:(3,6) often happens when you define the pins incorrectly. For example, I was using a Wemos D1 Mini and specified constants to define pins 6 and 7, whereas I should have put in D6 and D7. EDIT: oops, noted above this has already been mentioned. |
I have the same issue, but with no externals attached, on a BasicHttpClient example, that is below. Board is Wemos D1 mini lite, nothing is connected. Board is powered via USB from computer. Blink example is fine though. Also it worked before on the same board. Serial log:
Code:
|
Seems to be caused by your wireless multi definition - not sure why there are numerous wifi headers included. Try getting rid of #include <ESP8266WiFiMulti.h> and just use #include <ESP8266Wifi.h> Also get rid of the wifi declare ESP8266WiFiMulti WiFiMulti; and change to WiFiClient wifiClient; instead and use that in your code. I usually create a function to start Wifi and call it from the setup or loop. Eg like this...
|
This is from the ESP8266 library example.
Thanks. Anyway, I tried your suggestions and nothing changed. |
Do you have the latest libraries installed and updated? Have you tried another Wemos D1? I've been delivered one in the past that just failed like this all the time, regardless of the code I had on it. Although, if Blink works on it and this code doesn't, then that kind of points to the code or library. |
Thanks for reply, @chimeranzl
Yes
Yes, my other Wemos D1 works fine, but this one was also okay just a couple weeks ago, and I did only sketch changes. |
Fixed my issue with: Reduced the main delay to 3000 in
I did some more searching, and found this thread that suggests erasing flash. I changed the Erase Flash in Aduino to "All Flash Contents" and it helped. |
My exception was happening because I was hitting an infinite recursion case... |
this is probably a fluke, but my error was resolved when i used D6, instead of 6 as reference to pin number, |
That's correct!!!! I had the same issue. I was using #include <WiFi.h> library instead <ESP8266WiFi.h>. So after chaging that, i was able to connect to the Wireless Network and broker without the watchdog reset and all those stuffs. Thanks! |
I changed the values of the variables and everything worked fine |
This problem happened to me , cause is 'PROGMEM' usage. If you are change the PROGMEM values to another type e.g. String you can manage the wdt reset. |
I am having the same problem. I tried to upload a blank sketch and I still receiving the following on the serial monitor: wdt reset |
Can you try uploading blink example. And try experimenting with board
select ...nodemcu12E and the other node mcu12 also try generic one.
…On Sun, 4 Apr, 2021, 10:44 pm eliazgheib, ***@***.***> wrote:
I am having the same problem. I tried to upload a blank sketch and I still
receiving the following on the serial monitor:
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1809 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIMRJEIJ7MNPY5NU5MS55VLTHCM6RANCNFSM4B626OFQ>
.
|
Hey guys, i found this archive that explains everything. It's in Portuguese but it's worth taking a look. https://portal.vidadesilicio.com.br/watchdog-esp8266/ |
Obrigado amigo, para mim funcionou! |
It's cause you use pin6 as input lol. Don't do that and problem solved. |
I got the error when I wanted to send a |
simple fix, use the GPIO Numbers, not the D7 or so. |
I was facing this problem with JSON. |
4 years to get the right answer 😄 |
If you are using ESP8266, pls include <ESP8266WiFi.h> instead of <WiFi.h>. |
Basic Infos
Hardware
Hardware: ESP-12E
Core Version: 2.1.0
Description
Problem description
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: DIO
Flash Frequency: 80Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
Debug Messages
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: