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.

simple_peripheral添加了OAD功能,无法生成BIN文件。

Other Parts Discussed in Thread: SYSCONFIG

cc264R1/simplelink_cc13x2_26x2_sdk_3_40_00_02

使用例程simple_peripheral按照 OAD academy步骤添加了oad的功能,

在project-->option--> build actions --> post_build command line 处添加:

$SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR$/tools/ble5stack/oad/oad_postbuild.bat $TARGET_BPATH$ $PROJ_DIR$ $CONFIG_NAME$ $PROJ_FNAME$ $SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR$ $EXE_DIR$ $TARGET_BNAME$

编译链接后,有hex文件生成,并出现以下错误:

Performing Post-Build Action
c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/ble5stack/oad/oad_postbuild.bat C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe\
simple_peripheral_app C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak Debug simple_peripheral_app c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02 C:\ti\
simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe simple_peripheral_app
C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak>ielftool.exe --ihex --verbose C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\
CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe\simple_peripheral_app.out C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe\
simple_peripheral_app.hex 
   IAR ELF Tool V10.5.6.1181 [BUILT at IAR]
   Copyright 2007-2019 IAR Systems AB.
Loading C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe\simple_peripheral_app.out
Saving ihex file to C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe\simple_peripheral_app.hex
C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak>c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/common/oad/oad_image_tool.exe --verbose iar C:\ti\
simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak 7 -hex1 Debug/Exe/simple_peripheral_app.hex -k 
c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/common/oad/private.pem -o C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\
Exe/simple_peripheral_app_oad 
[5588] Failed to execute script oad_image_tool
Traceback (most recent call last):
  File "oad_image_tool.py", line 544, in <module>
  File "oad_image_tool.py", line 349, 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
Error while running c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02/tools/ble5stack/oad/oad_postbuild.bat C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\
Exe\simple_peripheral_app C:\ti\simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak Debug simple_peripheral_app c:/ti/simplelink_cc13x2_26x2_sdk_3_40_00_02 C:\ti\
simplelink_cc13x2_26x2_sdk_3_40_00_02\examples\rtos\CC26X2R1_LAUNCHXL\ble5stack\simple_peripheral_bak\Debug\Exe simple_peripheral_app