4MB Nor memory OTA reboot fail
4MB Nor memory OTA reboot fail
Postby bzhang222 » Tue Sep 19, 2017 4:00 am
I am using a 4MB NOR with ESP8266(ESP-12E), I can downlaod and flash into the 1MB+4KB region(option 6), and checksum is okay;
after download and do checksum, I called
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
system_upgrade_reboot()
then I got this failure
pcode=04x, frame_type=Fatal exception (28):
epc1=0x4010151f
epc2=0x00000000
epc3=0x4024f4aa
epcvaddr=0x00000008
depc=0x00000000
and system reboot again back to the first copy which is at 0+4KB region---
I compared these two files, they are exactly the same , matching on each byte; I am curious, should these two file be different? because they are linked to different place, isn't it?
user1.4096.new.6.bin
user2.4096.new.6.bin,
I choose 1 on step 2 and 6 on last step to build BIN1
I choose 2 on step 2 and 6 on last step to build BIN2
I can't think of a reason why the bin2 image does not boot, any hints?
after download and do checksum, I called
system_upgrade_flag_set(UPGRADE_FLAG_FINISH);
system_upgrade_reboot()
then I got this failure
pcode=04x, frame_type=Fatal exception (28):
epc1=0x4010151f
epc2=0x00000000
epc3=0x4024f4aa
epcvaddr=0x00000008
depc=0x00000000
and system reboot again back to the first copy which is at 0+4KB region---
I compared these two files, they are exactly the same , matching on each byte; I am curious, should these two file be different? because they are linked to different place, isn't it?
user1.4096.new.6.bin
user2.4096.new.6.bin,
I choose 1 on step 2 and 6 on last step to build BIN1
I choose 2 on step 2 and 6 on last step to build BIN2
I can't think of a reason why the bin2 image does not boot, any hints?
Re: 4MB Nor memory OTA reboot fail
Postby pratik » Tue Sep 19, 2017 2:20 pm
There is a bug in the code it seems, maybe you are writing to an address where you should not, or something like that. The output .S file address contains the aseembly code. The error should be at address epc1=0x4010151f
Re: 4MB Nor memory OTA reboot fail
Postby bzhang222 » Wed Sep 20, 2017 3:47 am
Thanks for replying, but I further investigated and it seems that the boot1.7 is having problem detecting 1MB+1MB config for 4MB parts, even on non-fota boot, it shows this as 512+512, i guess that is why it can not find the BIN2, probably it is looking at 512KB+1KB region for BIN2. But I am compiling with latest SDK(as of today) and the gen_appbin.py is uptodate, and I am building with step 5 option 6 which is 4MB parts(1024+1024), so i think there is a bug in the boot1.7 somewhere...
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
OS SDK ver: 1.5.0-dev(4e7f435) compiled @ Aug 25 2017 19:26:38
2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
OS SDK ver: 1.5.0-dev(4e7f435) compiled @ Aug 25 2017 19:26:38
Re: 4MB Nor memory OTA reboot fail
Postby Al_Ways » Fri Mar 30, 2018 4:25 pm
try flash with --flash_size 4MB-c1
or choose correct flash map when using flash download tool on windows
Code: Select all
esptool.py --port com --baud 115200 write_flash --flash_size 4MB-c1
or choose correct flash map when using flash download tool on windows
Who is online
Users browsing this forum: No registered users and 156 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.