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.

CC1312R: oad_image_tool.py给其他例程添加安全头

Part Number: CC1312R

我要给gpiostandby例程增加安全头,oad_image_tool.py脚本应该如何添加命令。能给一个例子吗?

  • 您好,

    您可以导入一个带OAD的例程,例如sensor_oad_onchip例程,打开程序属性 -> build -> steps -> post-build steps,里面有这样一句命令:

    ${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/tools/common/oad/oad_image_tool --verbose ccs ${PROJECT_LOC} 7 -hex1 ${ConfigName}/${ProjName}.hex -k ${COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR}/tools/common/oad/private.pem -o ${ConfigName}/${ProjName}
    这句话就是调用imgtool生成bin文件的,bin文件里会包括安全头。编译一下例程,在build log里面可以看到这句话实际是怎么执行的:

    C:/ti/simplelink_cc13xx_cc26xx_sdk_7_10_00_98/tools/common/oad/oad_image_tool --verbose ccs C:/Users/a0222721/workspace_v12_2_RTM_SDK/sensor_oad_onchip_secure_CC1312R1_LAUNCHXL_tirtos7_ticlang 7 -hex1 Release/sensor_oad_onchip_secure_CC1312R1_LAUNCHXL_tirtos7_ticlang.hex -k C:/ti/simplelink_cc13xx_cc26xx_sdk_7_10_00_98/tools/common/oad/private.pem -o Release/sensor_oad_onchip_secure_CC1312R1_LAUNCHXL_tirtos7_ticlang
    如果直接运行imgtool的话,就按照这个格式写参数就好。