Hi
We want to create an oad file. We plan to do it with internal memory.
We use oad_image_tool.py.
My computer does not allow installing Python 2.7.
Python 2.7 -> installed Python 3.12.1
Python intelhex-2.1- same version
Python crcmod-1.7 -same version
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
******************************************************************************************
Texas Instruments OAD Image Tool
Version: 1.0
******************************************************************************************
OAD Type: onchip
Img Type: APP
Input file(s): , rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_app_v2.hex
Output Hex file: <stdout>
Output Bin file: rfWsnNodeIntFlashOadClient_CC1310_LAUNCHXL_app_v2.bin
******************************************************************************************
Runtime Output:
Last address was 0x1C698. Expanded to 0x1C6A0 to be divisible by OAD block size
Traceback (most recent call last):
File "C:\ti\simplelink_cc13x0_sdk_4_20_02_07\tools\common\oad\oad_image_tool.py", line 331, in <module>
residentHdr = OadHdr._make(struct.unpack(OAD_HDR_FMT, mergedHex.tobinstr(startAddr, startAddr+15)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yunus.sozkesen\AppData\Local\Programs\Python\Python312\Lib\site-packages\intelhex\__init__.py", line 375, in tobinstr
return self._tobinstr_really(start, end, pad, size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\yunus.sozkesen\AppData\Local\Programs\Python\Python312\Lib\site-packages\intelhex\__init__.py", line 378, in _tobinstr_really
return asbytes(self._tobinarray_really(start, end, pad, size).tostring())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'array.array' object has no attribute 'tostring'
How can I solve the error?
Best regards.