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 代码时出现下面错误,不知道什么原因求解。
错误: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 是下载最新的 IAR for ARM 7.30,试用版没有破解,然后按一下步骤安装,装完后,编译SDK中的demo就出上面的错了。
1. Install IAR EW ARM
2. Install TI emupack
- Run the emupack installer found in the IAR installation: <iar_install>\arm\drivers\ti-xds
- Install it to the default location
3. If your EWARM has previously been patched, run included cleanup script:
a. Edit ewarm_cleanup_cc26xx_cc13xx.bat,
b. Modify IAR_BASE variable to match your <iarInstall>\arm path. Save.
c. Run ewarm_cleanup_cc26xx_cc13xx.bat as administrator
4. Apply the CC13xx/CC26xx patch
- Copy the folder 'config' into <iarInstallPath>\arm.
- Click yes if prompted to confirm folder replace
5. Fix for CC26xx PG2 board reset bug (bug EWARM 7.30.1 only).
a. Close any open instance of IAR.
b. Unzip 5393_armXDS100-board-reset-fix2.zip and copy armXDS100.dll into
<iar_install>\arm\bin.
你说的配置文件是不是$PROJ_DIR$\..\..\..\..\..\Libraries\CC26xx\IAR\CC2650\bin\buildConfig_peri_Custom.cfg 这个我加入之后还是显示错误。是加入到additional include directories吗
Hi Yuan
1. Please don't disclose CC2650 documents, it's NDA restricted documents until RTM.
2. Once you have opened your workspace(lets say simpleBLEperipheral.eww), can you go to your IAR settings( Tools->Configure Custom Argument Variables) and expand all variables defined there? If you find the correct path to TI_RTOS_DRIVERS_BASE, CC26XXWARE, XDCROOT and XDCPATH then, you should not be hitting this issue.
If your 'Configure Custom Argument Variables' window is empty try opening the simpleBLEperipheral.custom_argvars found under the IAR project folder.
LZ:
你这个问题是怎么解决的,
我用的是iar 7.4,也在Tools -> Confihure Custom Argument Variables 把.custom_argvars文件添加进去了,但是在编译的时候还是会有这个错误
求解答
不一样,CC2540是51核,CCdebugger可以支持
CC2640是M3核,ARM的内核,可以选择TI的XDS100/200系列的烧写器,或是ARM内核通用的烧写器。
SmartRf06上面已经自带了XDS100V3的调试器,在板子背面。你只需要通过一个mini USB线接到电脑上面就可以调试。
PS: SMartRf06上面的调试器也可以用来调试另外的板子,上面有external JTAG的接口,你可以上TI eStore上直接下单购买
http://www.ti.com/tool/smartrf06ebk?keyMatch=SmartRF06EB&tisearch=Search-EN-Everything
这是由于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一下看看