ets Jan 8 2013,rst cause:4, boot mode:(3,6)
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
#include <Arduino.h>
void setup() {
Serial.begin(115200);
Serial.setDebugOutput(true);
WiFi.mode(WIFI_STA);
WiFi.disconnect();
DEBUG_WM(F("WiFi mode STA"));
if (connectWifi("", "") == WL_CONNECTED) {DEBUG_WM(F("connect wifi with no saved "));}
else
{
DEBUG_WM(F("connect wifi with config value "));
if (connectWifi(ssid.c_str(), password.c_str()) == WL_CONNECTED) {}
}
Serial.print(F("IP Address:"));
Serial.println(WiFi.localIP());
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
HX711_Init();
}
void loop() {
}
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.
Is this the same as https://github.com/esp8266/Arduino/issues/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 SPIFFSImpl: mounting fs @100000, size=2fb000, block=2000, page=100 SPIFFSImpl: mount rc=0
thanks ,the code is : #define SCK 12 #define DOUT 13
SCK = sck; DOUT = dout; set_gain(gain); COEFFICIENT = scale; pinMode(SCK, OUTPUT); pinMode(DOUT, INPUT); digitalWrite(SCK, LOW); if (is_ready()) { read(); }
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? It is also not clear why you are getting messages related to SPIFFS if you are not using it (at least not in the code you have posted).
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 ?
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
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 PROGMEM const int l=7,r=6,f=5,b=4,h=3; to PROGMEM const int l=D4,r=D3,f=D2,b=D1,h=D0;
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): // PROGMEM is only available on AVR architecture
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.
//SELF-STANDING FUNCTION AT THE TOP OF THE SKETCH OUTSIDE OF SETUP/LOOP void(* resetFunction) (void) = 0;
//AT TOP OF THE LOOP --- RESET EVERY 8 HOURS if (millis () >= 28800000) { resetFunction(); }
What is the meaning of this "boot mode:(3,6)"?? There are also other types of boot modes, what do they mean?? Please provide any table that has all possible values and meanings of boot modes. Please help. Thank you.... https://hjlabs.in/
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... https://hjlabs.in/
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??