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.

[参考译文] CC1310:oad_image_tool.py 无法正常工作

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1316572/cc1310-oad_image_tool-py-not-working

器件型号:CC1310

您好

我们想创建一个 OAD 文件。 我们计划使用内部存储器来实现它。

 

我们使用 OAD_IMAGE_TOOL.py。

 

我的电脑不允许安装 Python 2.7。

 

Python 2.7 ->已安装 Python 3.12.1

Python intelhex-2.1-相同版本

Python crcmod-1.7-相同版本

 

 

CMD:Python oad_image_tool.py -t onchip -i app -v 0x0200 -m 0x10000 -ob rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_app_v2.bin rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_APP_v2.hex

 
我得到以下错误;
 

德州仪器 OAD 图像工具

版本:1.0

OAD 类型:片上

图像类型:应用

输入文件:、rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_APP_v2.hex

输出十六进制文件:

出纸盒文件:rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_app_v2.bin

运行时输出:

 

最后地址为0x1C698。 扩展为0x1C6A0、可被 OAD 块大小整除

回溯(最近的调用最后):

 文件"C:\ti\simplelink_cc13x0_sdk_4_20_02_07\tools\common\oad_image_tool.py"、第331行、位于

  residentHdr = OadHdr._make (struct.packed (OAD_HDR_FMT、mergedHex.tobinstr (startAddr、startAddr+15))

                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 文件"C:\Users\Yunus.sozkesen\AppData\Local\Programs\Python312\Lib\site-packages/intelhex\__init_.py",第375行,位于 tobinstr

  返回 self._tobinstr_really (开始、结束、填充、大小)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 文件"C:\Users\Yunus.sozkesen\AppData\Local\Programs\Python312\Lib\site-packages/intelhex\__init_.py"、第378行、在_tobinstr_really 中

  返回 asbytes(self._tobinarray_really (start, end, pad, size)。

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError:'array.array'对象没有属性'ToString'

 

 

如何解决该错误?

 

此致。

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

    尊敬的 Yunus:

    似乎你确实需要使用 Python 2.7,但让我看看我们是否能让它与 Python 3一起使用.

    此致、

    亚瑟

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

    尊敬的 Yunus:

    实际上、我们在最新的7.10.02.23 LOWPOWER-F2 SDK 中更新了 oad_image_tool.py、以便与 python 3.7配合使用。

    您可以试一下、让我知道它是如何为您工作的?

    此致、

    亚瑟