Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By krzychb
#55210 Hi @Daemach,

Switching on debug - https://github.com/esp8266/Arduino/blob ... bugging.md

Please see below sample settings for debugging of httpUpdate
debug.png


Note you need to set both "Debug port:" and "Debug Level:".

The process of OTA download by a module takes some time. Maybe you were not patient enough. Switching debug on should make the process visible. Also I would add some Serial.print() statements in your code to see if it runs and were it is at.
You do not have the required permissions to view the files attached to this post.
User avatar
By Daemach
#55226 Still crashing - here are the debug results:

[SETUP] WAIT 2...
[SETUP] WAIT 1...
state: 5 -> 0 (0)
rm 0
f r0, scandone
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
cnt

connected with Calypso, channel 1
dhcp client start...
ip:10.77.77.200,mask:255.0.0.0,gw:10.128.128.128
Connected!
[httpUpdate] Header read fin.
[httpUpdate] Server header:
[httpUpdate] - code: 200
[httpUpdate] - len: 226352
[httpUpdate] ESP8266 info:
[httpUpdate] - free Space: 794624
[httpUpdate] - current Sketch Size: 251600
[httpUpdate] runUpdate flash...
sleep disable
[begin] roundedSize: 0x00038000 (229376)
[begin] updateEndAddress: 0x00100000 (1048576)
[begin] currentSketchSize: 0x0003E000 (253952)
[begin] _startAddress: 0x000C8000 (819200)
[begin] _currentAddress: 0x000C8000 (819200)
[begin] _size: 0x00037430 (226352)
pm open,type:0 0
Staged: address:0x000C8000, size:0x00037430
[httpUpdate] Update ok
state: 5 -> 0 (0)
rm 0
pm close 7
del if0
usl

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
@cp:0
ld
User avatar
By Daemach
#55254 I'm sorry to keep nudging :/ This is a crash I'm seeing right? The unit does not respond as I would expect it to after the process is complete.
User avatar
By krzychb
#55259 @Daemach

If I use standard httpUpdate.ino sketch and modify it in attempt to upload your bin:

Code: Select allt_httpUpdate_return  ret = ESPhttpUpdate.update("http://u.synaptrix.com/spooky.bin");

I see the same log. Basing on this log, OTA update is successful, module is reset and then nothing other visible happens.

If I do the same with:

Code: Select allt_httpUpdate_return  ret = ESPhttpUpdate.update("http://iotappstore.org/blink.bin");

Then the log is almost identical but the LED connected to GPIO2 starts blinking.

Could you do the same test and post results?
What is your module type?
Does it have LED connected to GPIO2 and have you checked that it works?
What settings do you have in IDE for uploading?