ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby miles » Thu May 25, 2017 11:35 am
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
...
does my 2nd boot and user code in flash have been erased? or what's wrong with boot?
how can i read out my code in flash?
thanks.
my esp8266 normal print should be:
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x40100000, len 816, room 16
tail 0
chksum 0x8d
load 0x3ffe8000, len 788, room 8
tail 12
chksum 0xcf
ho 0 tail 12 room 4
load 0x3ffe8314, len 288, room 12
tail 4
chksum 0xcf
csum 0xcf
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 16Mbit
jump to run user1
compile time: May 10 2017 11:31:35
SDK version:1.5.0
...
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby pratik » Sun May 28, 2017 10:42 pm
Maybe you should re-flash the firmware.
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby miles » Wed May 31, 2017 3:56 pm
1. can i read my code out before re-flash it?
2. as i use my own http download code, can i turn off the built-in http download or upgrade function?
thanks!
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby pratik » Thu Jun 01, 2017 4:47 pm
You cannot directly read the flash and save its contents, but it probably will not be useful data anyway, because the newest firmware will work fine if your module is okay.
I hope you did not put 5V on some module pin? The module runs off 3.6V max. Over that can damage the module.
2. as i use my own http download code, can i turn off the built-in http download or upgrade function?
I did not clearly understand this. Are you talking about downloading and uploading data or are you talking about FOTA firmware update?
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby miles » Sat Jun 03, 2017 3:09 pm
I means the OTA firmware upgrade. I used my own http download code to download firmware, and call spi_flash_write() to upgrade user1.bin to user2.bin or versa.
Since i didn't call built-in upgrade function, like system_upgrade_start(), can i disable it? I am afraid if built-in function has some relation with this problem.
thanks.
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby pratik » Sun Jun 04, 2017 11:15 pm

You do not need to disable the SDK FOTA functions, just don't ever call them in your application and it will be fine.
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby miles » Mon Jun 05, 2017 9:59 am
I want to analyze the flash to find the cause, and finally resovle this bug or avoid it.
Anyway, thanks a lot!
Re: ESP8266 suddenly boot fail, and never jump to 2nd boot or user code, help!
Postby pratik » Wed Jun 07, 2017 3:26 pm
Also, do not try to upgrade boot.bin or touch system parameters area when you upgrade firmware. ONLY write to user1 or user2 area strictly.
The latest boot BIN will first try user1.bin... is checksum is invalid, it will jump to user2.bin. If both are invalid it will just print out an error and hang up the system.
Who is online
Users browsing this forum: No registered users and 305 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.