cc2640 编译时出现的问题
第一次编译时出现:
Building configuration: CC2640App - FlashROM
Updating build tree...
17 file(s) deleted.
Updating build tree...
Variable expansion failed for Pre-Build command line.
Offending text: ""$XDCROOT$/xs" --xdcpath="$XDCPATH$" iar.tools.configuro -c "$TOOLKIT_DIR$" --cc "$COMPILER_PATH$"
--device "$DEVICE$" --compileOptions $COMPILER_ARGS_ROOT_QUOTED$ --linkOptions $LINKER_ARGS_QUOTED$ --profile
release --projFile "$PROJ_PATH$""
Total number of errors: 1
Total number of warnings: 0
按照 Tools ->Custom Argument Variables 添加后,又出现
Building configuration: CC2640App - FlashROM
Updating build tree...
2 file(s) deleted.
Updating build tree...
Performing Pre-Build Action
Error while running "C:\ti\xdctools_3_31_01_33_core/xs" --xdcpath="C:\ti\tirtos_simplelink_2_13_00_06\products\bios_6_42_00_08\
packages" iar.tools.configuro -c "D:\IAR\arm" --cc "D:\IAR\arm\bin\iccarm.exe" --device "CC2650F128" --compileOptions "-D USE_ICALL
-D xPOWER_SAVING -D HEAPMGR_SIZE=2672 -D TI_DRIVERS_SPI_DMA_INCLUDED -D xTI_DRIVERS_LCD_INCLUDED -D
ICALL_MAX_NUM_TASKS=3 -D ICALL_MAX_NUM_ENTITIES=6 -D xdc_runtime_Assert_DISABLE_ALL -D
xdc_runtime_Log_DISABLE_ALL -D MAX_NUM_BLE_CONNS=1 -D CC26XXWARE -D CC26XX -D UART_DEBUG -D
UART_CALL_BACK=1 -D xNPI_USE_UART --diag_suppress Pa050 -o D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\FlashROM\Obj\ --debug
--endian=little --cpu=Cortex-M3 -f D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\..\..\..\..\..\..\..\Projects\ble\config\buildComponents.opt -f D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\
configPkg\compiler.opt.defs -f D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\..\..\Config\IAR-Boundary.bdef -e --fpu=None --dlib_config D:\IAR\arm\INC\c\
DLib_Config_Normal.h -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\
CC26xx\IAR\Application\CC2640\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../Source/Application\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Projects/ble/include\
-I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\
Application\CC2640/../../../../../../../Projects/ble/ICall/Include\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\
Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Projects/ble/Profiles/Roles/CC26xx\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Projects/ble/Profiles/Roles\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Projects/ble/Profiles/DevInfo\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Projects/ble/Profiles/SimpleProfile/CC26xx\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Projects/ble/Profiles/SimpleProfile\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\
Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Projects/ble/common/cc26xx\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/applib/heap\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/ble/hci\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/ble/controller/CC26xx/include\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\
Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/ble/host\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/hal/target/CC2650/rom\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\
Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/hal/target/CC2650TIRTOS\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/hal/target/_common/cc26xx\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\
Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/hal/include\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/osal/include\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/services/sdata\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/services/saddr\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/icall/include\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../../../../../Components/ble/include\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/npi\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../../../../../Components/npi/inc\
-I C:\ti\tirtos_simplelink_2_13_00_06\products\cc26xxware_2_21_01_15600\ -I C:\ti\tirtos_simplelink_2_13_00_06\packages\ -I D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640/../../../Source/Application/CC2650EM_4XS\ -I D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\
ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640/../../../Source/Application/LCD\ -Ohz" --linkOptions "-o D:\1.ATU\
BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\
FlashROM\Exe\SimpleBLEPeripheralAppFlashROM.out --config_def RTOS_ROM=1 --map D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\FlashROM\List\
SimpleBLEPeripheralAppFlashROM.map --config D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\..\..\..\..\..\common\cc26xx\IAR\cc26xx_ble_app.icf --keep __vector_table -f D:\
1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\
CC2640\configPkg\linker.cmd -f D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\BLE-2.0-PG2-42893_uart_4x4\Projects\ble\
SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\..\..\Config\IAR-Boundary.xcl C:\ti\tirtos_simplelink_2_13_00_06\products\
cc26xxware_2_21_01_15600\driverlib\bin\iar\driverlib.lib C:\ti\tirtos_simplelink_2_13_00_06\packages\ti\drivers\lib\
drivers_cc26xxware.arm3 --entry __iar_program_start --vfe" --profile release --projFile "D:\1.ATU\BLE-2.0-PG2-42893_uart_4x4\
BLE-2.0-PG2-42893_uart_4x4\Projects\ble\SimpleBLEPeripheral_LED\CC26xx\IAR\Application\CC2640\CC2640App.ewp"
Total number of errors: 1
Total number of warnings: 0
看到之前的帖子这个问题提问很多,但是具体方法我都试过,不能解决。
sai ,
首先说一下,还是老话。一切默认安装,什么都不动,装好以后,编译肯定是没问题。
你是否把SDK移到了其他路径或是什么?
会不会是因为 版本号的问题?我手上文档写的是的是42893,但是下载下来的是44627。我把协议栈和 IAR都重新安装了,未修改路径
To install the Bluetooth low energy stack SDK, run the ble_cc26xx_setupwin32_2_01_00_xxxxx.exe
installer:
• xxxxx is the SDK build revision number.
• The default SDK install path is C:\ti\simplelink\ble_cc26xx_2_01_00_xxxxx
昨天那个问题解决了。就是SDK版本号的问题。
进去编译工程之前,按照Tools --Custom Argument Variables ,进入C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\IAR 添加SimpleBLEPeripheral.custom_argvars。就OK了