[Solved] Cannot boot user2

clinkme
Posts: 3
Joined: Sun Dec 20, 2015 1:13 am

[Solved] Cannot boot user2

Postby clinkme » Sun Dec 20, 2015 1:59 am

I have ESP-01E with 1024 kB flash size. My firmware uses OTA (no upgrade server,
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).
Last edited by clinkme on Thu Dec 31, 2015 8:37 pm, edited 1 time in total.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Cannot boot user2

Postby ESP_Faye » Tue Dec 22, 2015 2:34 pm

Hi,

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 !

Who is online

Users browsing this forum: No registered users and 19 guests