Azure-Samples / iot-hub-c-huzzah-getstartedkit

Get started with the Adafruit Huzzah ESP8266 Azure IoT Starter Kit
MIT License
47 stars 25 forks source link

Fatal exception 3(LoadStoreErrorCause) #16

Open jshiweb opened 7 years ago

jshiweb commented 7 years ago

I am getting the follow error when trying to connect to the IoT Hub `------------------------------------ Fatal exception 3(LoadStoreErrorCause): epc1=0x4000bf64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40252329, depc=0x00000000

Exception (3): epc1=0x4000bf64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40252329 depc=0x00000000

ctx: cont sp: 3fff3930 end: 3fff3c80 offset: 01a0

stack>>> 3fff3ad0: 3fff3b0f 0000000a 3fff2c28 40214b6d
3fff3ae0: 4010619f 00000019 3fff3b0e 30214c31
3fff3af0: 3fff4e00 00000000 3fff3b1e 40214c31
3fff3b00: 00000009 00000000 3ffebf77 4021540c
3fff3b10: 00000000 3ffebcc2 00000001 00000003
3fff3b20: 3fff2c28 00000001 3ffebcc1 4021540c
3fff3b30: 3ffebf77 00000023 3ffe9ffc 3fff2a90
3fff3b40: 3ffea05c 00000024 3fff2c28 40214b6d
3fff3b50: 3ffebcc0 3ffe9fd9 3fff2c28 40214b6d
3fff3b60: 3fff3b80 402067a5 00000000 3ffe92f2
3fff3b70: 3fffdad0 3ffe9fd9 3fff2c28 40214bbc
3fff3b80: 40252329 3ffeaff4 00000000 3fff2b14
3fff3b90: 00000002 001e8768 00000000 00000001
3fff3ba0: ffffffff 0000000c 42c80000 00000000
3fff3bb0: 3dcccccd 001e8480 3ffebf48 40214c00
3fff3bc0: 3fff2a90 ffffffff 3fff2b1c 40204340
3fff3bd0: 3ffea111 343141b4 00000000 3fff2c54
3fff3be0: 3fffdad0 00000000 00000000 40201405
3fff3bf0: 00000009 0000001a 3ffea175 3fff2c54
3fff3c00: 3fffdad0 0000000a 3fff2c28 40214b6d
3fff3c10: 3ffebcc0 588ee90d 3fff2c28 40214c8f
3fff3c20: 3ffea15b 3fff2c54 3fff2c28 40214b98
3fff3c30: 3fffdad0 588ee90d 3fff2c28 40214ce0
3fff3c40: 3fffdad0 588ee90d 3fff2c28 3fff2c54
3fff3c50: 3fffdad0 00000000 3fff2c4c 40213038
3fff3c60: feefeffe feefeffe feefeffe 4021509c
3fff3c70: feefeffe feefeffe 3fff2c60 40100718
<<<stack<<<

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

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

wdt reset `

indizas-git commented 7 years ago

I have the exact same issue. Tried with Huzzah breakout board as well as a generic ESP8266-12E board. It also happens when using the simplesample_mqtt sample from the azure-iot-arduino-protocol-mqtt library. Both boards have been working fine with io.adafruit.com and flash other sketches without issues. I've tried various power options (18650s, 1s RC Lipos, switching supplies etc.) as these modules are notorious for instability during high current spikes but nothing helped.

Edit - Looks like the exception is thrown by this function call: IoTHubClient_LL_CreateFromConnectionString(connectionString, MQTT_Protocol)

I used the device connection string as copied from portal, wrapped in double quotes. The placeholder syntax is a little ambiguous so I even tried it with the copied string wrapped in square brackets, and in turn inside double-quotes. No luck.

ddewaele commented 7 years ago

Any luck with this in the meantime ?

indizas-git commented 7 years ago

This happened while using Adafruit's "HUZZAH ESP8266 Breakout" board. I eventually gave up and ordered their "Feather HUZZAH with ESP8266 WiFi" which worked first time. The major difference between the boards is that you need a separate Serial-USB adapter with the breakout board, but this is included with the Feather board. If anybody can explain why this sample only works with the Feather board I would be very grateful.

jens-o commented 6 years ago

I have the same problem with a "Feather HUZZAH with ESP8266"

RajanRastogi commented 6 years ago

Same issue with the Sparkfun ESP8266 Thing Dev.

jens-o commented 6 years ago

I turned of logging. Commented out Serial.setDebugOutput(true) in initSerial(). Then it worked for me.