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: Select all
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: Select all
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).