Hi
我用自己搭的http server作为ota升级服务器,可以看到版本正确的被下载和写到flash,最后crc校验也成功,信息如下:
upgrade data load finish.
img_crc = 293621782
flash_crc = 293621782
最后在升级的回调函数中调用 system_upgrade_reboot() 重新启动。启动后发现boot没有跳转到0x81000的user2.bin执行,还是从0x1000位置启动user1.bin版本,信息如下:
ets Jan 8 2013,rst cause:2, boot mode:(3,0)
load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79
2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : QIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000
请问是哪儿缺少步骤了吗?
system_upgrade_start(server) 启动
成功后,system_upgrade_reboot() 重启
Thanks you in advance!
OTA升级后重启版本不切换问题
Re: OTA升级后重启版本不切换问题
Postby ESP_Xutao » Tue Oct 11, 2016 2:58 pm
你好!
由于不清楚你的code实现过程,你可以参考一下我们关于FOTA的code,希望有所帮助.https://github.com/espressif/esp8266-rt ... e-code.git
由于不清楚你的code实现过程,你可以参考一下我们关于FOTA的code,希望有所帮助.https://github.com/espressif/esp8266-rt ... e-code.git
Who is online
Users browsing this forum: No registered users and 59 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.