诉求:simple_central生成用于OAD的Bin文件,编译过程报错,生成BIN文件过大
对比测试simple_peripheral_oad_onchip工程可以正常生成且Bin大小合理。
操作过程如下:
1、添加HEX转BIN指令(${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}_oad)

2、配置文件增加OAD

3、编译工程报错
Finished building target: "simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out"
E:/ble_css/ccs/tools/compiler/ti-cgt-armllvm_1.3.1.LTS/bin/tiarmhex.exe -order MS --memwidth=8 --romwidth=8 --intel -o simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.hex simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out
Translating to Intel format...
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .resetVecs ==> .resetVecs
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .rodata.1 ==> .rodata.1
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .text ==> .text
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .rodata.2 ==> .rodata.2
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .cinit ==> .cinit
"simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.out" .ccfg ==> .ccfg
E:/Ti_cc2642/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/tools/common/oad/oad_image_tool --verbose ccs E:/Ti_cc2642/sdk2/simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang 7 -hex1 Release/simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang.hex -k E:/Ti_cc2642/simplelink_cc13xx_cc26xx_sdk_6_41_00_17/tools/common/oad/private.pem -o Release/simple_central_CC26X2R1_LAUNCHXL_tirtos7_ticlang_oad
makefile:198: recipe for target 'post-build' failed
Traceback (most recent call last):
File "oad_image_tool.py", line 542, in <module>
File "oad_image_tool.py", line 341, 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
[20640] Failed to execute script 'oad_image_tool' due to unhandled exception!
gmake[2]: [post-build] Error 1 (ignored)
4、有生成BIN,但是太大了不符合预期

