找回密码
 立即注册

微信扫码登录

查看: 426|回复: 11

zigbee OTA提示OTA invalid image

[复制链接]

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
发表于 2025-4-18 14:12:15 | 显示全部楼层 |阅读模式
information
说明:   建议参照本版块置顶帖内容输入必要信息
芯片型号:
SDK及版本:
ota 到最后结束时,设备提示 ota invalid image. 什么意思? 怎么处理?


微信图片_20250418141155.png





27

主题

291

回帖

915

积分

版主

积分
915
发表于 2025-4-18 16:12:18 | 显示全部楼层
应该是格式或校验失败了,可以在ota_imageDataProcess()中定位一下。

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
 楼主| 发表于 2025-4-18 16:38:28 | 显示全部楼层
你好,不知道如何处理这个?

27

主题

291

回帖

915

积分

版主

积分
915
发表于 2025-4-18 19:01:47 | 显示全部楼层
在ota_imageDataProcess()函数中加一些调试变量,看是哪里返回的invalid image。

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
 楼主| 发表于 2025-4-19 10:02:11 | 显示全部楼层
是这里CRC异常,怎么解决?
微信图片_20250419100159.png

13

主题

57

回帖

345

积分

流光翡翠

积分
345
发表于 2025-4-21 08:16:00 | 显示全部楼层
fff 发表于 2025-4-19 10:02
是这里CRC异常,怎么解决?

Maybe you can have a look in my post with this issue - https://forum.telink-semi.cn/forum.php?mod=viewthread&tid=417&extra=page%3D6
I don't know if it is the same issue.

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
 楼主| 发表于 2025-4-21 08:38:17 | 显示全部楼层
谢谢,没有理解你怎么解决的。怎么操作的。

13

主题

57

回帖

345

积分

流光翡翠

积分
345
发表于 2025-4-21 14:20:12 | 显示全部楼层
本帖最后由 wes58 于 2025-4-21 14:23 编辑
fff 发表于 2025-4-21 08:38
谢谢,没有理解你怎么解决的。怎么操作的。

The problem I had was that the file tl_check_fw2.exe in tools directory was missing - it was deleted by antivirus. The CRC is added to the end of the firmware file. This files generates CRC after compilation.

At the end of compilation I had the following message:

    "../../../tools/tl_check_fw.sh" ht7017 tc32
    *****************************************************
    this is post build!! current configure is :ht7017
    copy from `ht7017.elf' [elf32-littletc32] to `ht7017.bin' [binary]
    ../../../tools/tl_check_fw.sh: line 6: ../../../tools/tl_check_fw2.exe: No such file or directory
    **************** end of post build ******************


If you have the same message (after you clean the project and recompile it) check the tools directory if you have file tl_check_fw2.exe.

You can also open your firmware file with any hex editor and have a look at offset 6-7. You should have 5D 00 if there is CRC in the firmware file

That's what is checked in this function first - it is reading flash_read(baseAddr + 6, 2, (u8 *)&crcFirmware);

flash_read(baseAddr + 6, 2, (u8 *)&crcFirmware);    if(((crcFirmware & 0xff) == 0x5D) && ((crcFirmware >> 8) & 0xff) == 0x02){





You may have a different reason. That was my problem.
FILE.png

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
 楼主| 发表于 2025-4-21 15:20:00 | 显示全部楼层
我们可能是同一个问题,你怎么解决这个问题?
微信图片_20250421151943.png

16

主题

35

回帖

196

积分

荣耀黄金

积分
196
 楼主| 发表于 2025-4-21 15:38:42 | 显示全部楼层
我参考了文件夹,没有这个tl_check_fw2.exe 文件
微信图片_20250421153818.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Telink forum ( 沪ICP备17008231号-1 )

GMT+8, 2025-5-9 22:30 , Processed in 0.093403 second(s), 23 queries .

Powered by Telink 隐私政策

泰凌微电子版权所有 © 。保留所有权利。 2024

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