收藏官网首页
查看: 5875|回复: 2

[悬赏] STM32L475+ESP8266+机智云,OTA时bootloader验证新固件时MD5不通过

2

主题

8

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
跳转到指定楼层
楼主
 楼主| 发表于 2023-4-9 20:01:33 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
汉枫LPB120模块
本帖最后由 半生少年 于 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天了,恳求大神帮指点指点,谢谢

2

主题

8

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
沙发
 楼主| 发表于 2023-4-18 21:51:48 | 只看该作者
没有个大神帮忙建议建议吗?多谢啦
板凳
发表于 2023-4-19 11:40:50 | 只看该作者
MD5不一致检查存储前后数据是不是有所改变或者没存储进去,还有最后不足1k的检验处理情况
发烧友
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表