-->
Page 1 of 2

bricked my device with WebUpdate OTA example

PostPosted: Mon Sep 28, 2015 1:29 pm
by jst0
Hello!
I just started playing with my first esp-01 module and already bricked it :(

Installed latest stable ESP8266 Arduino core using Boards Manager, uploaded hello world sketch, then tried WebUpdate example. All worked fine. Then I tried to upload the WebUpdate.cpp.bin file in the WebUpdate web form. It started to upload, then serial terminal showed some 'fail' messages, then board rebooted.

Now, board does not work normally. I can compile and upload the WebUpdate example, but instead of normal boot I get this in serial terminal:
Code: Select allBooting Sketch...

Exception (29):
epc1=0x4000e1c3 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000018 depc=0x00000000

ctx: cont
sp: 3ffeb1a0 end: 3ffeb490 offset: 01a0

>>>stack>>>
3ffeb340:  00000001 3fff56a8 3fff56a8 402359a8 
3ffeb350:  3fff56a8 3fff5108 3fffdc20 3ffeb4bc 
3ffeb360:  3fff383c 3fff3650 20c07aaf 3fffdc20 
3ffeb370:  40241968 00000064 fe34fe1a fffeffff 
3ffeb380:  00000018 0000ffff 00000000 3ffea0d0 
3ffeb390:  3ffeb3a8 4023224c 3fff35cc 3fff5108 
3ffeb3a0:  fe34fe1a 0000d793 00000000 00000000 
3ffeb3b0:  00000000 00000000 00000000 00000000 
3ffeb3c0:  00000000 00000000 00000000 00000000 
3ffeb3d0:  00000000 00000000 40232e18 3fff5108 
3ffeb3e0:  3ffea0d0 3fff5108 3ffea0d0 3fffdc20 
3ffeb3f0:  00000000 3fff3650 3ffec3cc 00000000 
3ffeb400:  402131c5 00000003 00000003 3fffdc20 
3ffeb410:  402132dd 00000003 00000003 40207abd 
3ffeb420:  00000001 40213336 00000003 3fffdc20 
3ffeb430:  4020279d 00000000 3ffeb4f0 402088a4 
3ffeb440:  3fffdc20 00000000 3ffeb4f0 4020251b 
3ffeb450:  00000000 00000000 00000000 00000000 
3ffeb460:  00000000 00000000 00000000 3ffeb4bc 
3ffeb470:  3fffdc20 00000000 3ffeb4b4 4020183f 
3ffeb480:  00000000 00000000 3ffea470 40100378 
<<<stack<<<

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

wdt reset

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

wdt reset


I guess, OTA failed in the middle of the process and left me with half-flashed device. Is there a way to sort it out? How do I reflash it to normal firmware?
Could someone give a clue what to do next?
Many thanks in advance.

Re: bricked my device with WebUpdate OTA example

PostPosted: Wed Sep 30, 2015 5:06 am
by SwiCago
have you tried to upload via serial? I don't see how it can be 100% bricked, since serial upload always works, even after a failed upload.

Re: bricked my device with WebUpdate OTA example

PostPosted: Thu Oct 01, 2015 1:32 am
by igrr
It might be worth trying to erase flash, in case there's something wrong with SDK config sectors. You can erase flash using esptool.py, for instance.
Other than that, i second SwiCago — it's next to impossible to brick the 8266, unless you have physically fried the chip somehow.

Re: bricked my device with WebUpdate OTA example

PostPosted: Mon Nov 23, 2015 9:19 pm
by Jorge García
igrr wrote:It might be worth trying to erase flash, in case there's something wrong with SDK config sectors. You can erase flash using esptool.py, for instance.
Other than that, i second SwiCago — it's next to impossible to brick the 8266, unless you have physically fried the chip somehow.


Thank you, igrr :D

Erasing the flash memory with:

Code: Select all$ python esptool.py [port] -b [baudrate] erase_flash


And uploading a new firmware fixed the issue.

Jorge García.