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

Moderator: igrr

User avatar
By krzychb
#55179
No, it fails using that template too:

[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...

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


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

wdt reset

If you see such log after initial upload of httpUpdate.ino using serial, then likely you have h/w problem with module.
If you see it after OTA upload, then likely you did not reset module after initial serial upload - see: https://github.com/esp8266/Arduino/issues/1782

Interestingly, when I reset the unit, it just spits out garbage in the serial monitor. I have to upload the sketch every time which makes me think that it's trying to install the bin and it's breaking somehow.

If you load standard blink.ino sketch, it will output just garbage as it does not initialise serial.

I have tried your file, it uploads using httpUpdate.ino, but does not blink my LED connected to GPIO2. I think you may be blinking another GPIO or the file is indeed broken.

Check this great tutorial - https://www.youtube.com/watch?v=UiAc3yYBsNU
It provides piratical examples and even a server with sample bin files to try OTA with HTTP Server method.

Hope this helps and good luck with beating OTA to work for you :D
User avatar
By Daemach
#55184 It was failing like that after the http upload. I did not reset the module. I did reset it this time and it failed differently. I did fix the blink bug - forgot to change the pin on the pinhigh/low calls. It inits serial as well, so we should see something in the monitor. Crash dump below:

[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...

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
#55185 I misunderstood about the reset. That last time, I hit reset as it was trying to connect to wifi. When it crashed, it dumped different information. I also tried resetting after it had sat there for a while, but it's not blinking...

How can I turn on debugging info so we can see where in the update function it's crashing?
User avatar
By Daemach
#55195 I watched that video and noticed the same kind of crash information in the serial monitor. He seemed to indicate that it was a problem with wifi credentials, but I had provided credentials and wifi was working. I put a serial.println() statement before the update to confirm that. BTW, it ONLY dumps this pattern if I interrupt the first attempt to connect to wifi after uploading the httpupload sketch. If I do not interrupt the first attempt, it crashes with the dump/info that I included in my first post.

Why is it crashing at all - for him or me????

It never runs the blink sketch - it just spits out garbage after running the updater once, and I have to re-upload the httpupload sketch each time.

I looked over the cpp and h files and there is debugging info available. It would be great if someone could tell me how to turn it on so I can gather more information.