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.

LAUNCHXL-CC1352P: CC1352P

Part Number: LAUNCHXL-CC1352P

Hi,
I am trying to enable OAD post-build to existing project on TI-CCP1352P1.
Added the following to the post-build step,

${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/oad_image_tool --verbose ccs ${PROJECT_LOC} 7 -hex1 ${ConfigName}/${ProjName}.hex -k ${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/private.pem -o ${ConfigName}/${ProjName}

Ans i tried to build using debug configuration then it is throwing an error,

makefile:228: recipe for target 'post-build' failed
[4484] Failed to execute script oad_image_tool
Traceback (most recent call last):
  File "oad_image_tool.py", line 542, in <module>
  File "oad_image_tool.py", line 343, in main
  File "oad_image_tool.py", line 184, in createAppStackBinfile
  File "imgBinUtil.py", line 252, in updateImgLen
  File "imgBinUtil.py", line 105, in writeBytes
OverflowError: can't convert negative int to unsigned
gmake[2]: [post-build] Error -1 (ignored)
 
What can be the reason ? What else changes needs to be added in properties ?

  • Hi Yogesh,

    What tool or IDE are you using to perform this step?

    As an example you can look at our SDK projects. E.g. for TI 15.4-Stack off chip example:

    ${CG_TOOL_HEX} -order MS --memwidth=8 --romwidth=8 --intel -o ${ProjName}.hex ${ProjName};${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/oad_image_tool --verbose ccs ${PROJECT_LOC} 7 -hex1 ${ConfigName}/${ProjName}.hex -k ${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/private.pem -o ${ConfigName}/${ProjName};${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/ti154stack/turbo_oad/toad_image_tool --verbose -j ${PROJECT_LOC}/${ConfigName}/syscfg/ti_154stack_toad_config.json -k ${COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR}/tools/common/oad/private.pem -nimg ${PROJECT_LOC}/${ConfigName}/${ProjName}.bin -o ${PROJECT_LOC}/${ConfigName}/${ProjName}.dim;

  • Hi Marie,

    I am using CCS


    makefile:226: recipe for target 'post-build' failed
    [12171] Failed to execute script oad_image_tool
    Traceback (most recent call last):
      File "oad_image_tool.py", line 542, in <module>
      File "oad_image_tool.py", line 343, in main
      File "oad_image_tool.py", line 172, in createAppStackBinfile
      File "imgBinUtil.py", line 186, in getImgStartAddr
      File "imgBinUtil.py", line 164, in getImgSegAddr
      File "imgBinUtil.py", line 137, in getSegAddr
    TypeError: ord() expected a character, but string of length 0 found
    gmake[2]: [post-build] Error 255 (ignored)

  • Hi Yogesh,

    Do you get this error if you build the default examples from the SDK, e.g. TI 15.4-Stack off chip OAD sensor example?