ESP8266 Developer Zone The Official ESP8266 Forum 2015-12-31T20:37:42+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1536 2015-12-22T14:34:45+08:00 2015-12-22T14:34:45+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1536&p=5127#p5127 <![CDATA[Re: Cannot boot user2]]>
Please call "make clean" first to delete the files generated in previous compilation (user1.bin), then compile user2.bin.

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Tue Dec 22, 2015 2:34 pm


]]>
2015-12-31T20:37:42+08:00 2015-12-20T01:59:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1536&p=5099#p5099 <![CDATA[[Solved] Cannot boot user2]]> just writing data from web to the right address of flash - 0x1000 for user1 or 0x81000 for user2,
and then call system_upgrade_flag_set(UPGRADE_FLAG_FINISH);).

I get the strange error code when trying to boot from user2.bin when using flash map
8Mbit(512KB+512KB).

Code:

E:M 0


When I revert the boot to user1.bin (erasing 0xFE000 sector), the chip boots OK from user1.bin.
Also, when I use flash map 8Mbit(256KB+256KB), both user1.bin & user2.bin are working OK.

Code:

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

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : DIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user2 @ 81000

E:M 0
E:M 0


Solved. There was a problem in makefile (user1 was linked for 1024k flash, but user2 for 512k).

Statistics: Posted by clinkme — Sun Dec 20, 2015 1:59 am


]]>