Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By pbecchi
#38140 I have a very similar problem , the reset is before execution of any statement so is difficult to trace what could be the reason. My error message is:

ts Jan 8 2013,rst cause:2, boot mode:(3,0)

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

Somebody suggested to use GDBstub to trace the fault :
it is working on esp8266 core?
could be usefull in this case?
any other idea or suggestion?
User avatar
By Tz Raj
#38157 After some search i found this information by smartynov (viewtopic.php?f=6&t=2503):

rst cause:1 – normal boot after power-on
rst cause:2 – reboot by reset button/pin
rst cause:4 – reboot caused by watchdog timer

I'm using now another power source, but didn't solve the problem.
I tried flashing the Blink exemple into the ESP8266 using GPIO2 and the module worked.
Here is my code:
Code: Select all#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>

const char* ssid = "AAA-0001";
const char* password = "12345678";

String site = "";

ESP8266WebServer server(80); // server: http://192.168.4.1

void handleRoot() {
  site =  "<html>\n";
  site += "<head><title>ESP Test</title></head>\n";
  site += "<body style=\"color: blue\">\n";
  site += "<center><h1>ESP test for AAA-0001</h1></center>\n";
  site += "</body>\n";
  site += "</html>";

  server.send(200, "text/html", site);

  site = "";
}

void setup() {
  WiFi.mode(WIFI_AP); // WIFI_AP / WIFI_AP_STA / WIFI_STA
  WiFi.softAP(ssid, password);
  IPAddress myIP = WiFi.softAPIP();
  server.on("/", handleRoot);
  server.begin();
}

void loop() {
  server.handleClient();
}
User avatar
By martinayotte
#38166 That could also be that ESP Wifi Config is either corrupted and/or not compatible with the current SDK, since you had probably an older AT firmware before.
I would suggest to do an "erase_flash" using esptool.py before re-uploading your current Blink sketch.