|
5#
楼主 |
发表于 2017-8-3 17:01:42
|
只看该作者
谢谢回复!
我可能没有说清楚。
我硬件使用的是安信可ESP-12F模组
烧录的映像是这样的:
boot_v1.5.bin 0x00000
user1.4096.new.6.bin 0x01000
blank.bin 0x3fe000
esp_init_data_default.bin 0x3fc000
asc_xs.bin 0x208000(约600K)
用乐鑫提供的ESPFlashDownloadTool_v3.4.4.exe烧录上述映像,运行良好,单独更新烧录其中的user1.4096.new6.bin也运行良好。
我的操作步骤:
一、然后我将user1.4096.new.6.bin代码里面的宏SDK_VERSION从“13”改为“14”,其它不做任何改动,编译后本地烧录,能运行正常。
二、将“14”版上传到机智云固件升级(OTA)云端,使用固件类型“wifi”
三、重新将原“13”版user1.4096.new.6.bin本地烧录到esp8266中,正常运行;
四、使用云端OTA“验证固件”功能,根据串口调试信息,可以看到固件正常更新。但同时,读出asc_xs.bin(0x208000)的数据,已经发生变化。
下面是串口调试界面的输出:(中间二进制数据,是定时读出flash中,0x208000位置的数据输出,可以看到OTA升级后,该位置数据发生变化)
2017-08-03 16:52:00
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
[M2M] M2M cmd to check OTA!!!
[M2M] M2M push WIFI OTA!
[GServer] Logsystem: Cloud_isNeedOTA GAgent_OTA:yes!
[GServer] start WIFI OTA...
[GServer] WIFI OTA is running!
2017-08-03 16:52:02
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
2017-08-03 16:52:04
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
2017-08-03 16:52:05
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
2017-08-03 16:52:07
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
2017-08-03 16:52:09
flash address: 0x208000
83030000C02F00000000000020000000
18000C00040000000000000000000000
00000000000000003FFFF8003FFFF800
20000800200008002000080020000800
[GServer] GAgent Download WIFI Firmware success,go to copy it to code area!
CRITICAL copy firmware success!
reboot to use2
state: 5 -> 0 (0)
rm 0
pm close 7
del if0
usl
2017-08-03 16:52:16
flash address: 0x208000
0100000000000000B46A050000100000
30304553503832360000303430323031
31340000663333313164656334623837
36633235343662636135383735373061
[GServer] http reconnect callback, error code -11 !!!
[M2M] reconnect callback, error code -11 !!!
[LogServer] Socket: logServer reconnect !!!
[Local] GAgentStatus change, lastGAgentStatus=0x073a, newGAgentStatus=0x070a
@@@@ GAgentStatus[hex]:70a | [Bin]:0,0,1,0,1,0
OnBoarding: Station mode
WiFi status: disconnected router
WiFi status: disconnected m2m
RSSI 7
ets Jan 8 2013,rst cause:1, boot mode3,6)
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(1024KB+1024KB)
jump to run user2 @ 101000
....
请继续帮忙看看,谢谢了哈
|
|