问题描述:自己在本地搭了一个服务器,从user1.bin升级到user2.bin没问题,不过升级重启后从user2.bin升级到user1.bin无法成功,user2.bin没法下载user1.bin,然后重启后就当机了。我看大家以前的帖子也提到这个问题了,不过说是make clean后就可以解决问题,我每次编译前都会make clean一下,step1选1,step5选2,按照教程分别烧录了
0xFC000 esp_init_data_default.bin
0xFE000 blank.bin
0x00000 boot_v1.2.bin
0x01000 user1.1024.new.2.bin
把user1.bin和user2.bin都上传到了自己的服务器上,大家谁还遇到过一样的问题,求指教!
我选择的是1024KB,还需要在代码哪里设置一下吗?
另外,我看有人提到boot区分正常模式和增强模式,请问如何设置boot进入不同的模式?
system_upgrade_start-----------------------------------------------------user1.bin开始升级
upgrade_connect
Updateing...
upgrade_connect_cb
GET /?version=v0.19&filename=user2.bin&action=download_rom HTTP/1.1
Host: 192.168.150.10
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gec ko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,eb-US;q=0.8
sumlength = 208308
upgrade file download start.
totallen = 2646
......................
totallen = 208308
upgrade file download finished.
flash_crc = 598032996
img_crc = 598032996
upgrade_check
user_esp_platform_upgrade_successful------------------------------------下载完成升级成功
reboot to use2
state: 5 -> 0 (0)
rm 0
del if0
bcn 0
del if1
usl
sul 0 0
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 : 4Mbit
jump to run user2
\0x10\0xf2\0xfb\0x03\0xff\0xd4\0xff\0xff\0xff\0x80
mode : sta(18:fe:34:f3:18:8c) + softAP(1a:fe:34:f3:18:8c)------------------------------------开始运行user2.bin
add if0
add if1
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
bcn 100
............
system_upgrade_start......................................................user2.bin开始升级
upgrade_connect
Updateing...
upgrade_connect_cb
GET /?version=v0.19&filename=user1.bin&action=download_rom HTTP/1.1
Host: 192.168.150.10
Connection: keep-alive
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gec ko) Chrome/30.0.1599.101 Safari/537.36
Accept: */*
Accept-Encoding: gzip,deflate,sdch
Accept-Language: zh-CN,eb-US;q=0.8
sumlength = 208308 ------------------------------------------------卡住了,没有下载
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
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 : 4Mbit
jump to run user2-------------------------------------------------------重启后运行user2.bin,之后就挂掉了
Fatal exception (0):
epc1=0x40281768, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40281768, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
从user2.bin升级到user1.bin失败
Re: 从user2.bin升级到user1.bin失败
Postby ESP_Faye » Thu Sep 10, 2015 2:02 pm
2nd boot version : 1.2
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size : 4Mbit
jump to run user2
您好,
1. 建议您使用最新版本的 boot,目前最新的版本是 boot_v1.4(b1).bin,新版本的 boot 在 user2 无法运行时,会跳回 user1 运行。
2. 从您提供的 log 看来,您的 flash size 是 4Mbit=512KB,但您编译时 Step 5 选择的却是1024KB。如果您确认您的 Flash size 实际为 1024KB,请您使用 Espressif 官方的 flash download tool,烧录时选择 Flash size 8Mbit.
如果您的问题仍未解决,麻烦提供烧录时的 flash download tool 截图,和运行时异常的 log,以供分析。
感谢您对 ESP8266 的关注!
Who is online
Users browsing this forum: No registered users and 84 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.