您好
我们想创建一个 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'
如何解决该错误?
此致。