ubidots-mqtt-esp icon indicating copy to clipboard operation
ubidots-mqtt-esp copied to clipboard

publish example throws LoadStoreAlignmentCause exception

Open rpgit12 opened this issue 3 years ago • 2 comments

Hi,

I've successfully got WiFi to work on an Feather Huzzah ESP8266, but am unable to get MQTT to work. The publish example consistently throws an LoadStoreAlignmentCause error.

The stacktrace is

Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
PC: 0x4020269a: WiFiClient::WiFiClient() at ./Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/cores/esp8266/Print.h line 46
EXCVADDR: 0x00000017

Decoding stack results
0x40203424: HardwareSerial::write(unsigned char const*, unsigned int) at ./Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/cores/esp8266/HardwareSerial.h line 193
0x40203a3c: Print::write(char const*) at ./Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/cores/esp8266/Print.h line 59
0x40201634: Ubidots::Ubidots(char*) at ./Documents/Arduino/libraries/ubidots-mqtt-esp-master/src/UbidotsESPMQTT.cpp line 39
0x402010c0: setup() at ./Documents/Arduino/sketch_wifi/sketch_wifi.ino line 48
0x40204d54: loop_wrapper() at ./Library/Arduino15/packages/esp8266/hardware/esp8266/3.0.1/cores/esp8266/core_esp8266_main.cpp line 198

Here's the console output, with debug for WIFI enabled. Any thoughts much appreciated!!!

.....scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt 

connected with paustian-huey, channel 11
dhcp client start...
wifi evt: 0
....ip:192.168.86.20,mask:255.255.255.0,gw:192.168.86.1
wifi evt: 3
.WiFi connected
IP address: 
192.168.86.20
Fatal exception 9(LoadStoreAlignmentCause):
epc1=0x4020269a, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000017, depc=0x00000000

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (9):
epc1=0x4020269a epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000017 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffdb0 end: 3fffffc0 offset: 0190
3fffff40:  40203424 3ffe8985 3ffee7f0 40203a3c  
3fffff50:  3fffdad0 0000000d 3ffee7f0 1c4466df  
3fffff60:  3fffdad0 1456a8c0 00ffffff 3ffee880  
3fffff70:  3fffdad0 3ffee7b4 3ffee7f0 40201634  
3fffff80:  feefeffe feefeffe 402081cc 1456a8c0  
3fffff90:  3fffdad0 00000000 3ffee728 402010c0  
3fffffa0:  feefeffe feefeffe 3ffee86c 40204d54  
3fffffb0:  feefeffe feefeffe 3ffe85dc 40100ef9  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

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

load 0x4010f000, len 3460, room 16 
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4 
tail 4
chksum 0xc9
csum 0xc9
v000526a0
~ld

SDK:2.2.2-dev(38a443e)/Core:3.0.1=30001000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-48-g7421258/BearSSL:c0b69df

rpgit12 avatar Jul 27 '21 02:07 rpgit12