|
本帖最后由 半生少年 于 2023-4-9 20:05 编辑
MCU:STM32L475,通过正点原子esp8266模块连接机智云。温湿度上传和控制开发板LED在机智云APP上都正常。
想实现OTA,参考MCU OTA3.1版本移植,程序下载机智云新固件正常,MD5检验也对的,但重启进入bootloader检验已经下载的固件MD5不一致,升级失败。从最后一个数据包下载,串口打印如下:
Get One Packet!
WiFi2MCU[328870: 205]: ff ff 00 c9 1d 6f 00 00 01 62 01 62 00 00 00 00 0f 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 3d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 04 08 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 21
**piecenum = 354 , piececount = 354, pieceSize = 192***
MD5 Calculate Success , Will Check The MD5 ..
d0 ef 71 42 d7 ed 9 29 7f 23 1e 3e d5 a7 a0 ce
d0 ef 71 42 d7 ed 9 29 7f 23 1e 3e d5 a7 a0 ce
(我把SSL和MD5都打印出来了,的确是一样的)
MD5 Check Success ,Storage ROM Success , Write Update Flag
System Will Restart... Boot ready to run
Update Task ,Sys Will Load New Sys..Wait For A Moment
Update Size [90560]
Check New Sys ...loop = 354
**********************************************************************************************************
MD5 Calculate Success
d0 ef 71 42 d7 ed 9 29 7f 23 1e 3e d5 a7 a0 ce
35 16 ac 3f 41 1d 3 3c c3 ee fd 90 d0 f7 f0 b1
(我还是把SSL和MD5都打印出来了,的确不一样)
Md5_Cacl Check Faild ,MCU OTA Faild
MD5: 35 16 ac 3f 41 1d 03 3c c3 ee fd 90 d0 f7 f0 b1
Check Faild , Go to Old Systerm
Sys Will Load APP.....
这个问题搞了N天了,恳求大神帮指点指点,谢谢
|
|