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-CC26X2R1: oad_image_tool.exe command for hex to bin

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: SIMPLELINK-CC13X2-26X2-SDK, CCSTUDIO

Hello !

I want to convert hex to bin via "oad_image_tool.exe" for testing BLE OAD,

but i have problem, I think it's my command wrong, Want to know the correct command,

I have referenced description, but still do not understand....
software-dl.ti.com/.../tools.html

I'm new to MCU Programming .Sorry!

Thanks ! 


--My command (Using Win10 CMD)--

oad_image_tool.exe  -o ccs C:/ti/testFloder/pwmled2_CC26X2R1_LAUNCHXL_tirtos_ccs.hex C:/ti/testFloder/_oad 0


--Error message--

Traceback (most recent call last):
File "oad_image_tool.py", line 546, in <module>
main(oad_args)
File "oad_image_tool.py", line 335, in main
raise Exception("Boundary file path and file name required!")
Exception: Boundary file path and file name required!
[29236] Failed to execute script oad_image_tool


  • Hello Wing,

    Here is a link to the updated BLE5-Stack User's Guide and OAD Image Tool section.  You can refer to the post-build steps from the simple_peripheral_oad Project Properties -> Build -> Steps to further understand how the example utilizes this tool.

    ${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}_oad

    Regards,
    Ryan

  • Hello:

    I referenced ccs project "simple_peripheral_oad_offchip_CC26X2R1_LAUNCHXL_tirtos_ccs" default setting from the Project Properties -> Build -> Steps,

    but when i build project, part "oad_image_tool" have error & can't see bin file output, As shown below

    Thanks!

    "SimpleLink CC13x2 26x2 SDK 4.30.00.54"

  • Make sure you are using the correct CCSTUDIO version for your SIMPLELINK-CC13X2-26X2-SDK, this is documented in the Release Notes.

    Regards,
    Ryan

  • i compare Release Notes Dependencies (CC13x2_26x2 SDK 4.40.04.04)

    -TI Code Composer Studio: CCS-10.2.0
    -TI Code Generation Tools for Arm: 20.2.2.LTS
    -XDCTools: 3.62.00.08

    I have checked the same configuration, and import "CC13x2_26x2 SDK 4.40.04.04 simple_peripheral_oad project ", but still same error.

    Thanks!

    --Console--

    C:/ti/simplelink_cc13x2_26x2_sdk_4_40_04_04/tools/common/oad/oad_image_tool --verbose ccs C:/Users/wi......
    usage: oad_image_tool [-h] [-v] [-verbose] [-hex1 HEXPATH1] [-bdf BDFILEPATH]
    [-hex2 [HEXPATH2]] [-k [KEYFILE]] -o OUTPUT
    ProjType ProjDir BinaryType
    oad_image_tool: error: argument BinaryType: invalid int value: 'Board'
    gmake[2]: [post-build] Error 2 (ignored)





  • I did not encounter any build errors with similar dependencies.  The release SIMPLELINK-CC13X2-26X2-SDK version is v4.40.00.44, I suggest you try re-installing all dependencies with this version.  If you received a custom SDK then please contact the source from which you received it.

    Regards,
    Ryan

  • The problem is solved !

    1. I created new CCS directory as workspace, 
    2. Import  project "simple_peripheral_oad_offchip_CC26X2R1_LAUNCHXL_tirtos_ccs" & Build 

    oad_image_tool no error now.

    Thanks