Part Number:CC1312R
我要给gpiostandby例程增加安全头,oad_image_tool.py脚本应该如何添加命令。能给一个例子吗?
Nick Sun:
您好,
您可以导入一个带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的话,就按照这个格式写参数就好。