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.

cc2650 SDK simple ble peripheral rebuild error

编译CC2650 SDK提供的 simple ble peripheral 代码时出现下面错误,不知道什么原因求解。

错误: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$""

按论坛查询原因是由于:

这是由于IAR没有找到配置变量文件,可能是老的版本打开后,再用更高的版本打开,会有会出现找不到路径

手动再添加一下试试,Tools->Configure Custom Argument Variables,如果是空的话,你需要添加例程路径下的SimpleBLEPeripheral.custom_argvars文件,比如路径

C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SimpleBLEPeripheral\CC26xx\IAR

下载完之后把IAR关闭再重新打开Build一下看看

但是尝试手动添加,添加不进去

  • 不会添加不进去的。

    试一下如下步骤:IAR打开Tools->Configure Custom Argument Variables 然后点Import 再找到 C:\TI\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\IAR 目录下找 SimpleBLEPeripheral.custom_argvars

    点击open就添加上了