I wrote a simple SSL application that sends HTTPS requests to a server. After thousands of requests, the application crashes during handshake:
Code: Select all
client handshake start.
E:M 1032
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1b2, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000004, depc=0x00000000
ets Jan 8 2013,rst cause:2, boot mode:(1,6)
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
At this point nothing run anymore, the application didn't restart properly.
I tried to disassemble my program with objdump to see which instruction fail at epc1=0x4000e1b2. But this address seems to be in BOOT ROM section according to http://esp8266-re.foogod.com/wiki/Memory_Map#bootrom.
Another point is that after every request I get the error:
Code: Select all
client's data invalid protocol
Error: SSL error 3
But it doesn't stop program execution. I have no idea what these errors means as they are printed by SDK and I didn't find any documentation about it.
I have no solution, could anyone help?
Thanks