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 Actionc:/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_appC:\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.outSaving 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.hexC:\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_toolTraceback (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 writeBytesOverflowError: can't convert negative int to unsignedError 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
Viki Shi:
请问您使用的CCS版本是什么?根据SDK3.40的要求:
SimpleLink CC13x2 / CC26x2 SDK 3.40.00.02 was built & tested on a Windows host platform using the following Integrated Development Environments (IDEs) and components. Using an IDE or toolchain version not listed below may result in incompatibility issues with this SDK release. Refer to the individual component release notes in the Document Overview for each component’s supported code generation tools.
IAR Embedded Workbench: EWARM-8.32.2
TI Code Composer Studio: CCS-9.3.0
TI Code Generation Tools for Arm: 18.12.4.LTS
XDCTools: 3.60.02.34
SysConfig Standalone tool for IAR IDE: 1.3.1030
user5203601:
回复 Viki Shi:
使用的是IAR 8.40.2
user5203601:
回复 user5203601:
IAR Embedded Workbench: EWARM-8.40.2
XDCTools: 3.60.02.34
SysConfig Standalone tool for IAR IDE: 1.3.1030
Viki Shi:
回复 user5203601:
这个IAR版本可以的,SDK里直接有simple_peripheral的OAD例程,编译这个是否有问题?
另外,请问您参考的document是什么版本的?目前3.40配套的OAD academy是这个: dev.ti.com/…/node
user5203601:
回复 Viki Shi:
参考的版本是OAD academy里面的这个: dev.ti.com/…/node,
SDK里面的simple_peripheral_oad_onchip例程是编译是没有问题的,我是想使用simple_peripheral这个例程按照OAD academy的添加方法来使用,但是无法产生bin文件。
Viki Shi:
回复 user5203601:
建议是直接用simple_peripheral的OAD例程,如果要自己实现的话,看你的报错是OAD image tool的问题,请查看这边的使用指南:dev.ti.com/…/tools.html