Re: OTA firmware updates
Posted:
Tue May 17, 2016 5:09 pm
by dbetz
I'm using a module with 4MB of flash. I'll try setting it to 1MB and let you know if that works better.
Re: OTA firmware updates
Posted:
Mon Jun 27, 2016 5:14 am
by grooves
firstly, Thankis sprite for your amazing work,
I have been using httpd code at a lot of ESP-03 modules 512KB), still non-lib version,
works very robust and stable,
no I got new ESP-12F modules with 4MB flash and want to move to lib version,
want to use in particular OTA upgrade,
generation and flash via serial of .ota file with OUTPUT_TYPE=ota works so far,
but I can't upgrade via OTA, when I upload httpd.user2.bin or httpd.user2.out I get:
...
Firmware upload cgi start.
Did not recognize flash image type!
Upload done. Sending response.
...
when I download httpd.ota file I get:
...
Firmware upload cgi start.
Flashing user2.bin from ota image
Upload done. Sending response.
Pool slot 0 is done. Cleaning up for next req
URL = /flash/reboot
Is url index 0
Is url index 9
...
but it doesn't switch to user2:
...
2nd boot version : 1.4(b1)
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 4Mbit(256KB+256KB)
jump to run user2 @ 41000
error magic!
first boot failed, reboot to try backup bin
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 1396, room 16
...
I tried 1024 and 4096 in makefile
any hints ?
Thanks,
Grooves
Re: OTA firmware updates
Posted:
Mon Jun 27, 2016 11:19 am
by grooves
OTA works after a git pull and moving to SDK 1.5.2,
but just with 1024,
4096 generates an error magic,
but doesn't matter for me
Regards,
grooves
Re: OTA firmware updates
Posted:
Mon Nov 07, 2016 8:46 pm
by Bilbo
I just made a new topic with essentially the same problem before I saw this last post.
I also have 4096 flash size and see the error magic when doing OTA update on open sdk 2.0.
Maybe I'll dig in and see if I can fix.