This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LP-CC1312R7:OAD_IMAGE_TOOL 2.1.2对 GCC 链接的十六进制文件发出异常

Guru**** 2482105 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1275833/lp-cc1312r7-oad_image_tool-2-1-2-gives-exception-on-gcc-linked-hex-file

器件型号:LP-CC1312R7

我可以看出输入的十六进制是 Intel 格式在0x1000处正确的
如果 CCFG 被手工更改为正确的起始 ADR、则可刷写并运行.hex 文件。

是否有可行的方法从由 GCC 工具链生成的.hex 文件生成.bin 文件?
如果是、如何?

> oad_image_tool.exe --详细 CCS。 7 -hex1 proj.hex -o proj.bin
回溯(最近的调用最后):
 file "oad_image_tool.py"、第542行、位于
   main (oad_args)
 文件"oad_image_tool.py"、第341行、在 main 中
   createAppStackBinfile (args.ProjType、args.ProjDir、binaryFileType、
 createAppStackBinfile 中的文件"oad_image_tool.py"、第184行
   util.updateImgLen (outfileAppPath、imgStAddr、imgEndAddr)
 updateImgLen 中的文件"imgBinUtil.py"、第252行
   writeBytes (fileName、bin_LEN_ptr、binLen、IMG_LEN_SIZE)
 文件"imgBinUtil.py"、第105行、位于 writeBytes 中
   filePtr.write (value.to_bytes (numBytes、byteorder ="小"))
OverflowError:无法将负 int 转换为无符号
[7848]由于未处理异常,无法执行脚本'OAD_IMAGE_TOOL'!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请提供更多信息。 您正在使用的是 TI15.4堆栈还是正在使用 wisun?

    Siri

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    没有一个。 这是使用 GCC 编译的单独应用程序

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我得知我们在 OAD 映像工具中不支持 GCC。

    Siri