HUZZAH ESP8266 breakout stopped working, keeps reseting

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Hello,

I was programming my HUZZAH (connected to Arduino to exchange with a MQTT server) and everything was working until after a code upload on the HUZZAH, I didn't receive anything. I connected the FTDI cable to see the serial display and saw :

Code: Select all

ets Jan  8 2013,rst cause:4, boot mode:(1,6)
wdt reset
With no exception or stack.

I googled the errors but it's related to a lot of different possible issues, so it's not easy to find my way around...
I started by uploading a old version of the code that was working before and saw the same log.

I tried several things with the sketch upload like tweaking Flash Mode, Flash size, Erase Flash, with no success.
I tried to flash the firmware like explained in this post, with no success.

Then I tried to upload basic sketches like ESP8266 blink which seems to work (if we agree that having ets Jan 8 2013,rst cause:2, boot mode:(3,6) is normal if I push the RST button, right?) but when I tried the code of this adafruit tutorial, and I got various result:

I see the same error than above when the code is just uploaded (boots from the RAM I suppose) and if I pressed reset, sometimes the log displayed the normal steps (connexion, requesting URL, display: everything is fine) and sometimes, or if I unplug / plug the FTDI cable, I see:

Code: Select all

Exception (0):
epc1=0x402311e9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x3ffedbe8 depc=0x00000000
Then a big stack, then a reset log :

Code: Select all

ets Jan  8 2013,rst cause:2, boot mode:(3,0)
I used the ESP Exception Decoder to decode the stack:

Code: Select all

Decoding stack results
0x40203959: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.h line 60
0x40202a1c: ESP8266WiFiSTAClass::status() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 498
0x40202b99: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 178
0x40202b75: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 168
0x40202b9f: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 178
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x40203959: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.h line 60
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x4020406c: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020150f: delay at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 51
0x4020255b: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 27
All these examples were working fine before and I don't know what do to next ^^'
(I can upload the others codes but as the adafruit example is not working, it didn't seem very useful. Also, the HUZZAH is only connected to the PC for all the described tests.)

Does anyone have any ideas to help me solve this?
Thanks in advance :)

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

Let's back up and really make sure blink was working. It sounds like maybe it was?
Then I tried to upload basic sketches like ESP8266 blink which seems to work
So try that again. This:
https://learn.adafruit.com/adafruit-huz ... -test-5-23
and try changing the blink rate and reuploading a few times to make sure the code changes are actually being uploaded.

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Hello,

Thanks for your answer!

So I uploaded the code several times with different blink rates and it worked :)

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Ok so I found another HUZZAH to make some comparisons.
And I'm even more lost at the end ^^

Basically with both HUZZAH and various sketches, sometimes I get the expected result and sometimes I don't. And the errors seems very varied!

One example with this code:

Code: Select all

#include <ESP8266WiFi.h>
#include <PubSubClient.h>

#define BAUD_RATE 9600

const char* ssid = "***";
const char* password =  "***";
const char* mqttServer = "192.168.1.18";
const int mqttPort = 1883;

bool debug = true;  //Affiche sur la console si True

char serialbuf[64]; //This gives the incoming serial some room. Change it if you want

WiFiClient espClient;
PubSubClient client(espClient);

void setup() {
  if (debug) {
    Serial.begin(115200);
  }

  WiFi.begin(ssid, password);

  while (WiFi.status() != WL_CONNECTED) {
    delay(500);

    if (debug) {
      Serial.println("Connecting to WiFi...");
    }
  }

  if (debug) {
    Serial.println("Connected to the WiFi network");
  }

  client.setServer(mqttServer, mqttPort);
  client.setCallback(callback);
}

void reconnect() {

  while (!client.connected()) {
    if (debug) {
      Serial.println("Connecting to MQTT...");
    }

    if (client.connect("ESP8266Client")) {

      if (debug) {
        Serial.println("connected");
      }

      //Request the topics to sub to arduino
      Serial.print("<TOPICS?>");

      client.subscribe("led/state");

    } else {
      if (debug) {
        Serial.print("failed with state ");
        Serial.println(client.state());
      }

      delay(2000);

    }
  }
}

void callback(char* topic, byte* payload, unsigned int length) {

}

void loop() {

  if (!client.connected()) {
    reconnect();
  }

  client.loop();

  if (Serial.available()) {

    static int bufpos = 0;
    char inchar = Serial.read();
  }
}
After the upload, the serial monitor displays normal log. Then I disconnect and reconnect the HUZZAH, and here what I see:

Code: Select all

// Reconnected to the PC

 ets Jan  8 2013,rst cause:4, boot mode:(3,1)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

 ets Jan  8 2013,rst cause:4, boot mode:(3,1)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

// Manual reset

Exception (0):
epc1=0x4022989f epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffb20 end: 3fffffd0 offset: 01a0

>>>stack>>>
[...] 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

// Manual reset

Exception (0):
epc1=0x40229883 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3fffeb30 end: 3fffffb0 offset: 01a0

>>>stack>>>
// Decoded stack
0x40204677: loop_task(ETSEvent*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 133
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222630: umm_free_heap_size at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1761
0x40222630: umm_free_heap_size at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1761
0x40201a18: xPortGetFreeHeapSize at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/heap.c line 181
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222362: umm_info at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 980
0x40222630: umm_free_heap_size at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1761
0x40222630: umm_free_heap_size at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1761
0x40201a18: xPortGetFreeHeapSize at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/heap.c line 181
0x40203959: PubSubClient::write(unsigned char, unsigned char*, unsigned short) at /Users/Arthur/Documents/Arduino/libraries/PubSubClient/src/PubSubClient.cpp line 524
0x40106741: __wrap_spi_flash_read at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_phy.c line 267
0x40202a7d: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 143
0x402029e7: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 104
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 487
0x40203788: PubSubClient::readByte(unsigned char*) at /Users/Arthur/Documents/Arduino/libraries/PubSubClient/src/PubSubClient.cpp line 231
0x40203959: PubSubClient::write(unsigned char, unsigned char*, unsigned short) at /Users/Arthur/Documents/Arduino/libraries/PubSubClient/src/PubSubClient.cpp line 524
0x4020203e: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x401004e8: malloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x402021b0: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 276
0x4020210e: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 489
0x40203fe8: HardwareSerial::begin(unsigned long, SerialConfig, SerialMode, unsigned char) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.cpp line 50
0x40202534: setup() at /Users/Arthur/Documents/Arduino/mqtt_Huzzah5_simple/mqtt_Huzzah5_simple.ino line 34 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld
Connecting to WiFi...
Connecting to WiFi...
Connected to the WiFi network
Connecting to MQTT...
connected
<TOPICS?>

// Manual reset

Connected to the WiFi network
Connecting to MQTT...
connected
<TOPICS?>

// Manual reset

Connected to the WiFi network
Connecting to MQTT...
connected
<TOPICS?>
First the board resets itself, then I press the reset button and get an exception and a stack, then the board reboots, then I press reset, get an exception and a new stack, then I get the connexion! Then I press again the reset button and again the connexion succeed.

Then I disconnect the HUZZAH and reconnect it. This time, I juste see the blue LED on the HUZZAH blinking, like if it resets endlessly.

That's just an example of the many tests I've done. Sometimes it works really well at the second connexion with the PC. Sometimes the GPIO0 stays red after the upload. Most of the time, after the third connexion with the PC, the board can only produce errors, no matter how many times I press the reset button ^^' What's really crazy is that I didn't have any problem with my board in the previous days!

I don't know what to try now... I purchased a new FTDI cable, we never know...

Thanks in advance if you have an idea to help me :)

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

OK, it sounds like the basic hardware is working and it can be programmed.

For the other sketch, something is causing the watch dog timer to trip and cause a reset. What was the sketch you were trying to use there?

[EDIT] I think we were posting at same time. Where did you get code above? The issue is with the various delay() calls causing the wdt reset.

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Thanks for you answer!
As we posted almost as the same time, I'm not sure you saw my answer above with an exemple ;)

I just tried again (with a powered USB hub) and I get another classic issue: big error stack after the upload, I disconnect / reconnect : everything works! I reset again, everything works! I reset again, this time I get a biiiig error stack then... it works oO

Another code I tested is the Adafruit Tutorial Wifi connexion:

Code: Select all

/*
 *  Simple HTTP get webclient test
 */

#include <ESP8266WiFi.h>

const char* ssid     = "***";
const char* password = "***";

const char* host = "wifitest.adafruit.com";

void setup() {
  Serial.begin(115200);
  delay(100);

  // We start by connecting to a WiFi network

  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());
  Serial.print("Netmask: ");
  Serial.println(WiFi.subnetMask());
  Serial.print("Gateway: ");
  Serial.println(WiFi.gatewayIP());
}

int value = 0;

void loop() {
  delay(5000);
  ++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 = "/testwifi/index.html";
  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(500);
  
  // 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);
  }
  
  Serial.println();
  Serial.println("closing connection");
}
After the upload, I get a connexion then an exception and a stack, then the board resets 2 times then I reset it and everything works endlessly oO

Code: Select all

Connecting to Livebox-***
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x4020e763 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffcb0 end: 3fffffd0 offset: 01a0

>>>stack>>>
Decoded stack:
0x4021178a: ip4_output_if at core/ipv4/ip4.c line 761
0x40211e83: ip_chksum_pseudo at core/inet_chksum.c line 395
0x4020eec6: tcp_output at core/tcp_out.c line 1123
0x4020bb20: sys_timeout_LWIP2 at core/timeouts.c line 217
0x4010020c: _umm_free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1295
0x401006ac: realloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1645
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40203312: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 448
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x40203f48: operator new(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/abi.cpp line 34
0x402033b4: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 404
0x40203465: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 330
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x402026ad: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.h line 263
0x40203984: Print::println() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 178
0x402040f8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 125
 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

// Manual reset

Connecting to Livebox-***
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Tue, 30 Jul 2019 15:45:25 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Tue, 30 Jul 2019 15:45:35 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Just saw you edit ;)

I don't really remember where I found the base for the code with the MQTT connection, I believe it's based on the examples of the PubSubClient library. I suppose they have been written for Arduino so yes, it could required some changes.

But I've seen several examples with delay to manage the connexion on the ESP, plus my code (and the adafruit example for HUZZAH) were working fine until now, it's weird ^^

Thanks again for taking the time to study my issue :)

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

What is the MQTT server you are trying to interact with?

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

It's a node.js server running on my computer (so in the local network).

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

Looking back at your results with wifitest skethc, it looks like it works after some initial hiccups. Those could be initial network connection issues of some kind. Once it finally connects and returns the text, does it then continue to work after a reset? Or does it always have the initial connection issue after a reset?

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

I'm having trouble finding a recognisable pattern ^^
But yes, with this code after a successful connection, it seems to always work after a reset. (But not always if I disconnect / reconnect the USB cable (and power), I don't know if it's logical).

Here is an extract of the tests I've done with the Adafruit Tutorial Wifi connexion (see above)

Test 1
  • Upload code
    Get an exception during first connection
    Manual reset
    Get the same exception
    Works fine endlessly
    Disconnect / Reconnect, works fine endlessly even after manual resets

Code: Select all

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x40229120 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffb60 end: 3fffffd0 offset: 01a0

>>>stack>>>
Decoding stack results
0x4020a621: glue2esp_linkoutput at glue-esp/lwip-esp.c line 299
0x4020a976: new_linkoutput at glue-lwip/lwip-git.c line 259
0x4020ad0b: ethernet_output at netif/ethernet.c line 305
0x4020e89f: tcp_write at core/tcp_out.c line 563
0x40210b20: etharp_output_to_arp_index at core/ipv4/etharp.c line 768
0x4020e89f: tcp_write at core/tcp_out.c line 563
0x40211e83: ip_chksum_pseudo at core/inet_chksum.c line 395
0x40203312: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 448
0x40201edc: uart_write at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 333
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x4020377c: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 158
0x40211e83: ip_chksum_pseudo at core/inet_chksum.c line 395
0x4020eec6: tcp_output at core/tcp_out.c line 1123
0x4020bb20: sys_timeout_LWIP2 at core/timeouts.c line 217
0x4010020c: _umm_free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1295
0x401006ac: realloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1645
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40203312: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 448
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x40203f48: operator new(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/abi.cpp line 34
0x402033b4: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 404
0x40203465: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 330
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x402026ad: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.h line 263
0x40203984: Print::println() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 178
0x402040f8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(1,7)


 ets Jan  8 2013,rst cause:4, boot mode:(1,7)

wdt reset

// Manual Reset

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x40216a64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffb20 end: 3fffffd0 offset: 01a0

>>>stack>>>
Same Stack that above
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:39:20 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:39:31 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:39:41 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

// Working endlessly from there
Test 2
  • Upload code
    Get a WDT reset
    Manual reset
    Get an exception with a new stack
    Gets stuck
    Manual reset
    Works fine endlessly

Code: Select all

 ets Jan  8 2013,rst cause:4, boot mode:(1,6)

wdt reset

Exception (0):
epc1=0x40229120 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3fffeaa0 end: 3fffffb0 offset: 01a0

>>>stack>>>
Decoding stack results
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x40203959: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.h line 60
0x40201fa5: uart_flush at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 376
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x401004e8: malloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x40202274: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 276
0x402021d2: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 489
0x4020406c: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020150f: delay at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 51
0x4020251c: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 18
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4

//Stuck, manual reset

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:51:56 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:52:07 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

// Working endlessly
Test 3
  • Upload code
    Works perfectly
    Disconnect / reconnect : get a new exception during the first connexion
    Disconnect / reconnect 3 times : works fine

Code: Select all

 ....
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
PC: 0x40208428: _Bfree at ../../../.././newlib/libc/stdlib/mprec.c line 141
EXCVADDR: 0x20d0003d

ctx: cont 
sp: 3ffffcf0 end: 3fffffd0 offset: 01a0

>>>stack>>>
Decoding stack results
0x4020eec6: tcp_output at core/tcp_out.c line 1123
0x4020bb20: sys_timeout_LWIP2 at core/timeouts.c line 217
0x4010020c: _umm_free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1295
0x401006ac: realloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1645
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40207949: _dtoa_r at ../../../.././newlib/libc/stdlib/dtoa.c line 858
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x40203f48: operator new(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/abi.cpp line 34
0x402033b4: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 404
0x40203465: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 330
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x40203984: Print::println() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 178
0x402040f8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 125 
<<<stack<<<

 ets Jan  8 2013,rst cause:1, boot mode:(3,0)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:56:13 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x40229120 epc2=0x00000000 epc3=0x00000000 excvaddr=0x20d0003d depc=0x00000000

ctx: cont 
sp: 3ffffaa0 end: 3fffffd0 offset: 01a0

>>>stack>>>
Decoding stack results
0x40211d94: mem_malloc at core/mem.c line 136
0x4020a976: new_linkoutput at glue-lwip/lwip-git.c line 259
0x4020ad0b: ethernet_output at netif/ethernet.c line 305
0x4020ad14: ethernet_output at netif/ethernet.c line 305
0x40203441: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/WiFiClient.cpp line 177
0x4020a976: new_linkoutput at glue-lwip/lwip-git.c line 259
0x4020ad0b: ethernet_output at netif/ethernet.c line 305
0x4020ad14: ethernet_output at netif/ethernet.c line 305
0x40210b20: etharp_output_to_arp_index at core/ipv4/etharp.c line 768
0x40203441: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/WiFiClient.cpp line 177
0x40203441: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/WiFiClient.cpp line 177
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x40203428: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/WiFiClient.cpp line 176
0x4020eec6: tcp_output at core/tcp_out.c line 1123
0x4020bb20: sys_timeout_LWIP2 at core/timeouts.c line 217
0x4010020c: _umm_free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1295
0x401006ac: realloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1645
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40203d53: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 156
0x40203d9f: String::reserve(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 146
0x40203e97: String::concat(char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.cpp line 288
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x402026ad: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.h line 263
0x4020408d: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 95
0x402040f8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

 ets Jan  8 2013,rst cause:1, boot mode:(3,0)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1

Exception (0):
epc1=0x4020bd20 epc2=0x00000000 epc3=0x00000000 excvaddr=0x20d0003d depc=0x00000000

ctx: sys 
sp: 3fffed10 end: 3fffffb0 offset: 01a0

>>>stack>>>
Decoding stack results
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x4020ada4: memp_malloc at core/memp.c line 404
0x4020bc5c: cyclic_timer at core/timeouts.c line 165
0x4020bb20: sys_timeout_LWIP2 at core/timeouts.c line 217
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x4020bc5c: cyclic_timer at core/timeouts.c line 165
0x4020bc74: cyclic_timer at core/timeouts.c line 172
0x4020bd20: sys_check_timeouts at core/timeouts.c line 351
0x40202a1c: ESP8266WiFiSTAClass::status() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 498
0x40202b99: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 178
0x40202b75: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 168
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x40203959: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.h line 60
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x40203a6d: Print::printNumber(unsigned long, unsigned char) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 260
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x4020406c: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020150f: delay at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 51
0x40202615: loop() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 44
0x40203984: Print::println() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 178
0x402039f8: Print::println(Printable const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 238
0x402025bc: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 38
<<<stack<<<

 ets Jan  8 2013,rst cause:1, boot mode:(3,0)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 13:56:35 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

// Working endlessly
Test 4
  • Upload code
    Works perfectly
What really puzzles me is the inconsistence between tests and the variety of exceptions I get ^^'

And when it comes to the other code the results are worse. Most of the time I get a connexion with the MQTT server after 1 or 2 exceptions after the upload. And most of the time, disconnect / reconnect gives me endless stacks of errors and I'm forced to reupload the code. During my last test, even the reupload couldn't stop the endless stacks (try several times), I had to reupload another code then mine to make it works (for a short time)... So weird!

(NB: I received my new FTDI cable and it changes nothing)

Thanks again for your time :)

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

Blink is running fine, so we know the basic hardware is OK. The FTDI cable is mainly needed for programming, so that wouldn't really change the behavior of the code execution. Althoug power may play into it.

Keep using the simple wifi test sketch:
https://learn.adafruit.com/adafruit-fea ... -wifi-6-33
and see if you can get better results by changing your location relative to your router. Or, if possible, try another wifi network.

Just to make sure there's nothing wrong with the hardware, can you post a photo of your setup. Also show the FTDI cable and how you are hooking it up.

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

I tried to be as close as possible from the router and it seems to have had a slightly positive effect ^^
I still have some errors but less than before:
  • Test1: no error even after reset and deco/reco
    Test2: an exception after "connecting to wifitest.adafruit.com" even if a first connexion already succeed, then again other different errors (see the log below)
    Test3: no error after upload and reset but a another stack avec deco/reco then everything works fine
    Test4: an exception after a manuel reset, but works fine after connect / reconnect
    Test5: no error even after reset and deco/reco

Code: Select all

Connecting to Livebox-90B4
.........
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:14:30 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

// Manual reset for test

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com

Exception (0):
epc1=0x402196b9 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3fffed10 end: 3fffffb0 offset: 01a0

>>>stack>>>
Decoding stack results
0x4010020c: _umm_free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1295
0x401006dc: free at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1755
0x40211da8: mem_free at core/mem.c line 152
0x4020a621: glue2esp_linkoutput at glue-esp/lwip-esp.c line 299
0x4020a976: new_linkoutput at glue-lwip/lwip-git.c line 259
0x4020ad0b: ethernet_output at netif/ethernet.c line 305
0x4020ad14: ethernet_output at netif/ethernet.c line 305
0x40210b20: etharp_output_to_arp_index at core/ipv4/etharp.c line 768
0x40210d78: etharp_output_LWIP2 at core/ipv4/etharp.c line 882
0x40211724: ip4_output_if_opt_src at core/ipv4/ip4.c line 962
0x402117b2: ip4_output_if_src at core/ipv4/ip4.c line 801
0x40211e83: ip_chksum_pseudo at core/inet_chksum.c line 395
0x4020e38f: udp_sendto_if_src at core/udp.c line 843
0x40211d94: mem_malloc at core/mem.c line 136
0x401004e8: malloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x4020dd3b: pbuf_take_at at core/pbuf.c line 1205
0x4020e3fc: udp_sendto_if at core/udp.c line 654
0x4020e470: udp_sendto at core/udp.c line 567
0x4020bf34: dns_send at core/dns.c line 834
0x4020ada4: memp_malloc at core/memp.c line 404
0x40202a1c: ESP8266WiFiSTAClass::status() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 498
0x4020bffd: dns_check_entry at core/dns.c line 1060
0x4020c574: dns_gethostbyname_addrtype at core/dns.c line 1444
0x4020406c: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020150f: delay at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 51
0x40202890: ESP8266WiFiGenericClass::hostByName(char const*, IPAddress&, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp line 475
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x40202c64: WiFiClient::connect(char const*, unsigned short) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/WiFiClient.cpp line 98
0x402039d0: Print::println(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 190
0x40202645: loop() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 52
0x40203984: Print::println() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 178
0x402039f8: Print::println(Printable const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 238
0x402025bc: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 38  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:14:53 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:15:04 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

// Manual reset

Exception (0):
epc1=0x40229120 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys 
sp: 3fffeaa0 end: 3fffffb0 offset: 01a0

>>>stack>>>
Decoding stack results
0x40203788: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/HardwareSerial.h line 159
0x40203959: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.h line 60
0x402040ed: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 121
0x402040e4: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 120
0x402040d8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 117
0x40201fa5: uart_flush at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 376
0x40202102: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 438
0x401004e8: malloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x40202274: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 276
0x402021d2: uart_init at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 489
0x4020406c: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020150f: delay at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 51
0x4020251c: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 18
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:19:53 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x40211745 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3ffffc80 end: 3fffffd0 offset: 01a0

>>>stack>>>


Decoding stack results
0x40201b03: uart_do_write_char at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/uart.c line 318
0x40211d94: mem_malloc at core/mem.c line 136
0x401004e8: malloc at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/umm_malloc/umm_malloc.c line 1668
0x40211d94: mem_malloc at core/mem.c line 136
0x40211d94: mem_malloc at core/mem.c line 136
0x4020ad68: do_memp_malloc_pool at core/memp.c line 301
0x4020ada4: memp_malloc at core/memp.c line 404
0x4020e5f5: tcp_create_segment at core/tcp_out.c line 200
0x4021178a: ip4_output_if at core/ipv4/ip4.c line 761
0x40211e83: ip_chksum_pseudo at core/inet_chksum.c line 395
0x4020eec6: tcp_output at core/tcp_out.c line 1123
0x40203346: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 461
0x401064ca: millis at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_wiring.c line 183
0x40203f48: operator new(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/abi.cpp line 34
0x402033b4: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 404
0x40203465: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 330
0x402043cd: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/Print.cpp line 118
0x402026ad: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/WString.h line 263
0x4020408d: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 95
0x402040f8: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266/core_esp8266_main.cpp line 125 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:20:10 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 17:20:20 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
I've no access to another wifi currently.

Please find my board image attached!
Attachments
IMG_0167.jpg
IMG_0167.jpg (277.09 KiB) Viewed 1029 times

User avatar
adafruit_support_carter
 
Posts: 24377
Joined: Tue Nov 29, 2016 2:45 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by adafruit_support_carter »

Try updating your ESP8266 board support package to latest version and see if that helps. Looks like you are using 2.4.2:
/Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.4.2/cores/esp8266
Latest version is 2.5.2.

Also update any libraries that need updating.

User avatar
Mysterarts
 
Posts: 19
Joined: Fri Aug 31, 2018 3:51 pm

Re: HUZZAH ESP8266 breakout stopped working, keeps reseting

Post by Mysterarts »

Oh! I'm a little ashamed, I though the board version was automatically updated with the link in the preferences, I didn't check.

I updated everything but the issue(s ?) are still here.
I had several perfect tests but sometimes some errors pop like in the following logs.

And my codes (that worked well before!) still get crazy endless stacks ^^'

Code: Select all

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4

Exception (9):
epc1=0x40206564 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4020b03f depc=0x00000000

>>>stack>>>
Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
0x40202b08: String::copy(char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 211
0x40202b48: String::String(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 36
0x40201414: ESP8266WiFiGenericClass::_eventCallback(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp line 218
0x402012ac: ESP8266WiFiGenericClass::ESP8266WiFiGenericClass() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp line 88
0x40202da5: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 95
0x40202e02: init_done() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 184
0x4020ac5c: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 531
0x402081cd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
PC: 0x40206564: _printf_i at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf_i.c line 123
0x40208210: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202fac: ets_printf_P(char const*, ...) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 80
0x40202679: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 60
0x4020317a: __wrap_system_restart_local() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 152
0x401001cc: pvPortMalloc(size_t, char const*, int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/heap.cpp line 155
0x40204278: _umm_free(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1304
0x4020ffff: tcp_trigger_input_pcb_close at core/tcp_in.c line 2034
0x40202d3f: loop_task(ETSEvent*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 133
0x40204278: _umm_free(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1304
0x4020157c: ESP8266WiFiSTAClass::status() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 613
0x40201741: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 210
0x4020171d: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 200
0x40201747: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 210
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202679: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 60
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202d84: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020330f: delay(unsigned long) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_wiring.cpp line 54
0x402010a7: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 27
0x40202e2c: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 122
EXCVADDR: 0x4020b03f: _vfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 479

Decoding stack results
0x4020aa72: __ssputs_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 233
0x4020ae87: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 660
0x402081cd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x40208210: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x40202fac: ets_printf_P(char const*, ...) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 80
0x40210062: netif_issue_reports at core/netif.c line 912
0x402100aa: netif_do_set_ipaddr at core/netif.c line 483
0x40210118: netif_set_addr_LWIP2 at core/netif.c line 688
0x40210108: netif_set_addr_LWIP2 at core/netif.c line 713
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x40203144: __wrap_system_restart_local() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 126
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x40212aa1: dhcp_create_msg at core/ipv4/dhcp.c line 1941
0x4020ac5c: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 531
0x40202b08: String::copy(char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 211
0x40202b48: String::String(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 36
0x40201414: ESP8266WiFiGenericClass::_eventCallback(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp line 218
0x402012ac: ESP8266WiFiGenericClass::ESP8266WiFiGenericClass() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp line 88
0x40202da5: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 95
0x40202e02: init_done() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 184
0x4020ac5c: _svfprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/nano-vfprintf.c line 531
0x402081cd: _vsnprintf_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 73
0x40208210: vsnprintf at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/vsnprintf.c line 42
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202fac: ets_printf_P(char const*, ...) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 80
0x40202679: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 60
0x4020317a: __wrap_system_restart_local() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_postmortem.cpp line 152
0x401001cc: pvPortMalloc(size_t, char const*, int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/heap.cpp line 155
0x40204278: _umm_free(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1304
0x4020ffff: tcp_trigger_input_pcb_close at core/tcp_in.c line 2034
0x40202d3f: loop_task(ETSEvent*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 133
0x40204278: _umm_free(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1304
0x4020157c: ESP8266WiFiSTAClass::status() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 613
0x40201741: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 210
0x4020171d: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 200
0x40201747: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp line 210
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202679: Print::write(char const*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 60
0x402023d4: HardwareSerial::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/HardwareSerial.h line 158
0x40202d84: esp_yield() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 91
0x4020330f: delay(unsigned long) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_wiring.cpp line 54
0x402010a7: setup() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 27
0x40202e2c: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 122  
<<<stack<<<

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4
.......
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:31:33 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:31:44 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

//Manual reset

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:32:19 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (0):
epc1=0x40211381 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>
Decoding stack results
0x40202a28: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 179
0x40201df8: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 505
0x4020c476: operator new(unsigned int) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/new_op.cc line 52
0x40201e92: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 445
0x40201f55: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 361
0x402026b8: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 63
0x402011fd: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.h line 289
0x40202da5: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 95
0x40202e34: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 125
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:32:35 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:32:46 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection

// Manual reset

Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:33:08 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

This is a test of Adafruit WiFi!
If you can read this, its working :)

closing connection
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html

Exception (29):
epc1=0x4022ca02 epc2=0x00000000 epc3=0x00000000 excvaddr=0x0000000c depc=0x00000000

>>>stack>>>
Decoding stack results
0x4021414c: etharp_output_to_arp_index at core/ipv4/etharp.c line 770
0x40211381: tcp_write at core/tcp_out.c line 263
0x40211381: tcp_write at core/tcp_out.c line 263
0x40201df8: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 505
0x40215880: mem_malloc at core/mem.c line 210
0x40202716: Print::println(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.cpp line 180
0x402011be: loop() at /Users/Arthur/Documents/Arduino/HuzzahWifiTest/HuzzahWifiTest.ino line 63
0x40204278: _umm_free(void*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1304
0x4020466e: realloc(void*, size_t) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/umm_malloc/umm_malloc.cpp line 1654
0x40202a28: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 179
0x40202a28: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 179
0x40202a28: String::changeBuffer(unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.cpp line 179
0x40201df8: ClientContext::_write_some() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 505
0x4020c476: operator new(unsigned int) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/new_op.cc line 52
0x40201e92: ClientContext::_write_from_source(DataSource*) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 445
0x40201f55: WiFiClient::write(unsigned char const*, unsigned int) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi/src/include/ClientContext.h line 361
0x402026b8: Print::print(String const&) at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/Print.h line 63
0x402011fd: loop() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/WString.h line 289
0x40202da5: esp_schedule() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 95
0x40202e34: loop_wrapper() at /Users/Arthur/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/cores/esp8266/core_esp8266_main.cpp line 125
 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld


Connecting to Livebox-90B4
.
WiFi connected
IP address: 
192.168.1.39
Netmask: 255.255.255.0
Gateway: 192.168.1.1
connecting to wifitest.adafruit.com
Requesting URL: /testwifi/index.html
HTTP/1.1 200 OK
Server: nginx/1.10.3 (Ubuntu)
Date: Wed, 31 Jul 2019 19:33:24 GMT
Content-Type: text/html
Content-Length: 70
Last-Modified: Thu, 16 May 2019 18:21:16 GMT
Connection: close
ETag: "5cddaa1c-46"
Accept-Ranges: bytes

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”