TI论坛
直播中

刘馨

7年用户 294经验值
私信 关注
[问答]

关于CC2650工程编译Variable expansion failed解决方法

本人在开发环境搭建好后,就打开一个工程编译,结果出现以下问题:
Building configuration: CC2650App - FlashROM
Updating build tree...

0  file(s) deleted.
Updating build tree...
Variable expansion failed.
  Offending text: "$TI_RTOS_BUNDLE$compiler_iar_gui.opt"
  Partial command line: ""E:Texas InstrumentsBLE-2.0-PG2-40009-A-0.6


Projectsblecommoncc26xxboard_key.c" "-D" "ewARM" "-D" "USE_ICALL" "-D"  
"xPOWER_SAVING" "-D" "ICALL_STACK0_ADDR=0x9000" "-D" "TI_DRIVERS_GPIO_INCLUDED" "-D"


"TI_DRIVERS_SPI_INCLUDED" "-D"  
........

"$PROJ_DIR$/../../../../../../../Components/hal/include" "-I"


"$PROJ_DIR$/../../../../../../../Components/osal/include" "-I"


"$PROJ_DIR$/../../../../../../../Components/services/sdata"  
"-I" "$PROJ_DIR$/../../../../../../../Components/services/saddr" "-I"


"$PROJ_DIR$/../../../../../../../Components/icall/include" "-I"  
"$PROJ_DIR$/../../../../../../../Components/ble/include" "-I"


"$PROJ_DIR$/../../../../../../../Componentsti-rtosdriverscc2650" "-I"  
"$PROJ_DIR$/../../../../../../../Components/ti-rtos/boards/srf06eb_cc26xxresources" "-I"


"$DRIVERLIB_DIR$cc26xx" "-I" "$DRIVERLIB_DIR$cc26xxinc" "-I"  
"$DRIVERLIB_DIR$cc26xxsource" "-I" "$TI_RTOS_BUNDLE$" "-Ohz" "
Error while running C/C++ Compiler

Total number of errors: 0
Total number of warnings: 0

回帖(3)

庄当甜

2018-8-10 09:48:52
建议您在IAR编译器菜单栏,找到Tools->Configure Custom Argument Variables,打开后import工程路径的对应文件
举报

庄当甜

2018-8-10 10:02:42
另外您也可以参考 http://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/p/411517/1459789#1459789
举报

刘馨

2018-8-10 10:13:03
不知道怎么解决,后来发现说明的这句话: Error while compile “Variable expansion failed”. The solution is to go to Tools->Configure Custom Argument Variables and click import in order to select C:Texas InstrumentsBLE-CC26xx-2.0.0-38847-Alpha- 0.4ProjectsbleSimpleBLEPeripheralCC26xx_RTOSIAR ProjectsSimpleBLEPeripheral.custom_argvars 在IAR编译器菜单栏,找到Tools->Configure Custom Argument Variables,打开后import工程路径的对应文件就OK了,重新编译,没有错误出现。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分