simplelink_cc13x0_sdk_1_30_00_06 里面的例程,想跑跑例程不管是RTOS/NORTOS新建IAR工程时有很多链接链不到,路径错了,好不容易自己修改后可以编译成功了,download又不行。请TI技术能否试试,确定一下你们是否遇到这样的问题。之前一个版本都没有问题啊。
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.
simplelink_cc13x0_sdk_1_30_00_06里没有NORTOS的例程,在最近新发布的simplelink_cc13x0_sdk_1_40_00_10中才有NoRTOS的例程。
编译不成功,可能有以下几个原因:
1. SDK没有安装到默认的路径
2. SDK安装路径中有空格或中文字符
3. kernel没有编译(参考file:///C:/TI/simplelink_cc13x0_sdk_1_30_00_06/docs/proprietary-rf/html/cc13x0/examplesusersguide/index.html#running-examples-in-iar)
4. 没有将示例工程与原文件建立连接(例如,对于empty示例工程,操作为打开Project-Add Project Connection窗口,点击OK,然后选择C:\……\empty\tirtos\iar下的empty.ipcf文件
)
5. 环境变量设置不正确(Import the IAR Custom Argument Variables file with the menu option Tools -> Configure Custom Argument Variables
. The location and file to be imported is C:/ti/simplelink_cc13x0_sdk_1_00_00_xx/tools/iar/SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars
.)
我在IAR 8.11.2版本上走了一边,导入没有问题,流程如下:
报这个错误的原因是你的kernal没有编译过。
你需要到C:\TI\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar目录下,打开tirtos_builds_CC1310_LAUNCHXL_release工程,设置Configure Custom Argument Variables,连接Add Project Connection,然后re-build这个tirtos_builds_CC1310_LAUNCHXL_release工程。
之后在回到你的empty工程重新编译。
另外,建议在8.11.2及更新版本上使用simplelink_cc13x0_sdk_1_40_00_10
环境变量是在工程里加入路径 Tools -> Configure Custom Argument Variables
. The location and file to be imported is C:/ti/simplelink_cc13x0_sdk_1_00_00_xx/tools/iar/SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars
.)是吧,有做。
IAR 是用的是7.2。
我再用8.11的试试,但是之前的SDK我一直用7.2没有任何问题啊,都用过很久的呀。
你好,请问,我是按照如下步骤操作的,但是kernel仍然无法编译。
1. IAR8.11.2
2. SDK装在C:\ti\simplelink_cc13x0_sdk_1_40_00_10
3. 用IAR 打开C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar下的kernel release 的例程
4. 在Tools-> Configure Custom Argument Variables 中设置环境变量
5. 在Project->Add Project Connection-> Connect using IAR project Connection -> 加载tirtos_builds_CC1310_LAUNCHXL_release.ipcf
编译时,仍然有如下的错误提示:
Building configuration: tirtos_builds_CC1310_LAUNCHXL_release - Debug
Updating build tree...
C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar/package.mak
1 file(s) deleted.
Updating build tree...
Performing Pre-Build Action
"c:/ti/xdctools_3_50_02_20_core/xs" --xdcpath="c:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/packages;c:/ti/simplelink_cc13x0_sdk_1_40_00_10/source"
iar.tools.configuro -o C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar/../iar -c "D:\Program Files (x86)\IAR Systems\
Embedded Workbench 8.0\arm" --cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\bin\iccarm.exe" --device "CC1310F128" --compileOptions
"dummy.c -o C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar\Debug\Obj --no_cse --no_unroll --no_inline
--no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -DDeviceFamily_CC13X0 -e --fpu=None --dlib_config \"D:\
Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\INC\c\DLib_Config_Normal.h\" -Ol" --linkOptions "--create -o C:\ti\
simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC1310_LAUNCHXL_release.a" --profile release
--projFile "C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar\tirtos_builds_CC1310_LAUNCHXL_release.ewp"
Using RTSC configuration file: C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/../release.cfg...
A previous project clean has been detected. Cleaning the generated source libraries before building...
c:/ti/xdctools_3_50_02_20_core/gmake -f package/cfg/release_prm3.src/makefile.libs clean
cleaning package/cfg/release_prm3.src/sysbios ...
making package.mak (because of package.bld) ...
configuring release.xrm3 from package/cfg/release_prm3.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/package/cfg/release_prm3.src/sysbios/rom_sysbios.arm3 ...
gmake[1]: Entering directory `C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/package/cfg/release_prm3.src/sysbios'
C:/Users/lenovo/AppData/Local/Temp/make9296-4.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [rom_knl_Intrinsics_lib.pp] Error 2
gmake[1]: *** Waiting for unfinished jobs....
C:/Users/lenovo/AppData/Local/Temp/make9296-6.sh: 1: Syntax error: "(" unexpected
Preprocessing library source files ...
gmake[1]: *** [rom_knl_Mailbox_lib.pp] Error 2
C:/Users/lenovo/AppData/Local/Temp/make9296-7.sh: 1: Syntax error: "(" unexpected
C:/Users/lenovo/AppData/Local/Temp/make9296-2.sh: 1: Syntax error: "(" unexpected
C:/Users/lenovo/AppData/Local/Temp/make9296-8.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [rom_knl_Queue_lib.pp] Error 2
gmake[1]: *** [rom_knl_Clock_lib.pp] Error 2
gmake[1]: *** [rom_knl_Semaphore_lib.pp] Error 2
C:/Users/lenovo/AppData/Local/Temp/make9296-3.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [rom_knl_Idle_lib.pp] Error 2
C:/Users/lenovo/AppData/Local/Temp/make9296-5.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [rom_knl_Event_lib.pp] Error 2
C:/Users/lenovo/AppData/Local/Temp/make9296-1.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [rom__BIOS_lib.pp] Error 2
gmake[1]: Leaving directory `C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/package/cfg/release_prm3.src/sysbios'
gmake: ***
[C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/builds/CC1310_LAUNCHXL/release/iar/package/cfg/release_prm3.src/sysbios/rom_sysbios.arm3] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed:
exit status = 2:
js: "C:/ti/xdctools_3_50_02_20_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package/cfg/release_prm3.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/release_prm3.xdl'
gmake.exe: *** [package/cfg/release_prm3.xdl] Deleting file `package/cfg/release_prm3.h'
gmake.exe: *** [package/cfg/release_prm3.xdl] Deleting file `package/cfg/release_prm3.c'
js: "C:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/packages/iar/tools/configuro/Main.xs", line 133: Error: xdc.tools.configuro: configuration failed due to earlier
errors (status = 2); 'linker.cmd' deleted.
Error while running "c:/ti/xdctools_3_50_02_20_core/xs"
--xdcpath="c:/ti/simplelink_cc13x0_sdk_1_40_00_10/kernel/tirtos/packages;c:/ti/simplelink_cc13x0_sdk_1_40_00_10/source" iar.tools.configuro -o C:\ti\
simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar/../iar -c "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\
arm" --cc "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0\arm\bin\iccarm.exe" --device "CC1310F128" --compileOptions "dummy.c -o C:\ti\
simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar\Debug\Obj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa
--no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -DDeviceFamily_CC13X0 -e --fpu=None --dlib_config \"D:\Program Files (x86)\IAR Systems\
Embedded Workbench 8.0\arm\INC\c\DLib_Config_Normal.h\" -Ol" --linkOptions "--create -o C:\ti\simplelink_cc13x0_sdk_1_40_00_10\kernel\tirtos\builds\
CC1310_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC1310_LAUNCHXL_release.a" --profile release --projFile "C:\ti\simplelink_cc13x0_sdk_1_40_00_10\
kernel\tirtos\builds\CC1310_LAUNCHXL\release\iar\tirtos_builds_CC1310_LAUNCHXL_release.ewp"
Total number of errors: 1
Total number of warnings: 0
请问有遇到过吗?感谢。
非常感谢你的答案,真是帮了很大的忙。
公司采用的CC26xx系列芯片,但是公司电脑需要受监控,500G的硬盘只有一个分区。也就是电脑只有一个C盘,在单位使用官方的SDK没有任何问题。IAR编译,调试都OK。
最近在家搭建开发环境,安装IAR和SDK。
SDK版本:
simplelink_cc13x2_26x2_sdk_3_20_00_68(截止2019/7/25,最新的官方sdk版本)
simplelink_cc13x2_26x2_sdk_3_10_00_53(之前的版本编译有同样的问题,我以为是新版本的SDK有bug,所以第二次安装和公司一样的版本测试,发现还是有同样的问题)
IAR版本:我之前都是安装自己习惯默认安装在D盘目录,D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2
IAR EW for Arm 8.40.1(截止2019/7/25,最新的IAR版本)
IAR EW for Arm 8.32.4(之前的问题还是有,所以我安装跟公司一样的开发环境测试,发现还是有同样的问题,真是彻底无语了)
下面是编译的log:出现问题的地方
Building configuration: gpiointerrupt - Debug
Updating build tree...
Performing Pre-Build Action
iarbuild.exe c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp Debug -log all
IAR Command Line Build Utility V8.2.4.5914
Copyright 2002-2019 IAR Systems AB.
Building configuration: tirtos_builds_CC26X2R1_LAUNCHXL_release - Debug
Updating build tree...
Performing Pre-Build Action
"c:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/packages;c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/source" iar.tools.configuro -o c:\ti\
simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar/../iar -c "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm" --cc "D:\Program Files (x86)\IAR Systems\Embedded
Workbench 8.2\arm\bin\iccarm.exe" --device "CC2642R1F" --compileOptions "dummy.c -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Obj --no_cse --no_unroll --no_inline
--no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -DDeviceFamily_CC26X2 -e --fpu=VFPv4_sp --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\inc\c\
DLib_Config_Normal.h\" -Ol" --linkOptions "--create -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC26X2R1_LAUNCHXL_release.a" --profile release
--projFile "c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp"
Using RTSC configuration file: c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/../release.cfg...
making package.mak (because of config.bld) ...
configuring release.xrm4f from package/cfg/release_prm4f.cfg ...
generating custom ROM library makefile ...
Starting build of library sources ...
making c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/package/cfg/release_prm4f.src/sysbios/rom_sysbios.arm4f ...
Creating the SYS/BIOS library that contains the APIs not included in the ROM ...
C:/Users/mc/AppData/Local/Temp/make7016-2.sh: 1: Syntax error: "(" unexpected
gmake[1]: *** [makefile:69: rom_sysbios.obj] Error 2
gmake: *** [c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/package/cfg/release_prm4f.src/makefile.libs:57:
c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/package/cfg/release_prm4f.src/sysbios/rom_sysbios.arm4f] Error 2
Build of libraries failed.
error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/SourceDir.xs", line 209: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2:
js: "C:/ti/xdctools_3_51_02_21_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed!
gmake.exe: *** [package.mak:191: package/cfg/release_prm4f.xdl] Error 1
gmake.exe: *** Deleting file 'package/cfg/release_prm4f.xdl'
gmake.exe: *** [package/cfg/release_prm4f.xdl] Deleting file 'package/cfg/release_prm4f.h'
gmake.exe: *** [package/cfg/release_prm4f.xdl] Deleting file 'package/cfg/release_prm4f.c'
js: "C:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/packages/iar/tools/configuro/Main.xs", line 133: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
Error while running "c:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/packages;c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/source" iar.tools.configuro -o c:\ti\
simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar/../iar -c "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm" --cc "D:\Program Files (x86)\IAR Systems\Embedded
Workbench 8.2\arm\bin\iccarm.exe" --device "CC2642R1F" --compileOptions "dummy.c -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Obj --no_cse --no_unroll --no_inline
--no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -DDeviceFamily_CC26X2 -e --fpu=VFPv4_sp --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\inc\c\
DLib_Config_Normal.h\" -Ol" --linkOptions "--create -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC26X2R1_LAUNCHXL_release.a" --profile release
--projFile "c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp"
Total number of errors: 1
Total number of warnings: 0
ERROR, Command failed: make
Error while running iarbuild.exe c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp Debug -log all
Total number of errors: 1
Total number of warnings: 0
我实在是没有办法了,只好在cmd.exe中输入操作的命令,看看有没有log信息定位下问题到底出现在哪里。
命令1:“D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\common\biniarbuild.exe ”c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/builds/CC26X2R1_LAUNCHXL/release/iar/tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp Debug -log all
命令2:
"c:/ti/xdctools_3_51_02_21_core/xs" --xdcpath="c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/kernel/tirtos/packages;c:/ti/simplelink_cc13x2_26x2_sdk_3_10_00_53/source" iar.tools.configuro -o c:\ti\
simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar/../iar -c "D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm" --cc "D:\Program Files (x86)\IAR Systems\Embedded
Workbench 8.2\arm\bin\iccarm.exe" --device "CC2642R1F" --compileOptions "dummy.c -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Obj --no_cse --no_unroll --no_inline
--no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M4 -DDeviceFamily_CC26X2 -e --fpu=VFPv4_sp --dlib_config \"D:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\inc\c\
DLib_Config_Normal.h\" -Ol" --linkOptions "--create -o c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\Debug\Exe\tirtos_builds_CC26X2R1_LAUNCHXL_release.a" --profile release
--projFile "c:\ti\simplelink_cc13x2_26x2_sdk_3_10_00_53\kernel\tirtos\builds\CC26X2R1_LAUNCHXL\release\iar\tirtos_builds_CC26X2R1_LAUNCHXL_release.ewp"
最后发现一点用没有,真是被折磨的怀疑人生了。
真是还好看到你的答案。
本来想问你最后解决没有,跟你一样的问题。真是被折磨的怀疑人生。最后看到这篇帖子才找到答案。
我实践发现只需要将IAR安装在C盘,SDK可以安装到其他盘,但是如果SDK安装在其他盘就需要手动修改tools中的变量文件,主要是设置SDK的安装路径信息。文件位于<SDK安装路径>\tools\iar\SIMPLELINK_CC13X2_26X2_SDK.custom_argvars。
例如:
我的sdk安装在G:\Code\simplelink_cc13x2_26x2_sdk_3_20_00_68,我的SIMPLELINK_CC13X2_26X2_SDK.custom_argvars文件内容
<?xml version="1.0" encoding="iso-8859-1"?>
<iarUserArgVars>
<group active="true" name="SIMPLELINK_CC13X2_26X2_SDK">
<variable>
<name>XDCPATH</name>
<value>G:/Code/simplelink_cc13x2_26x2_sdk_3_20_00_68/kernel/tirtos/packages;G:/Code/simplelink_cc13x2_26x2_sdk_3_20_00_68/source</value>
</variable>
<variable>
<name>XDCROOT</name>
<value>G:/Code/xdctools_3_51_03_28_core</value>
</variable>
<variable>
<name>SYSCONFIG_ROOT</name>
<value>c:/ti/sysconfig_1.1.792</value>
</variable>
<variable>
<name>FREERTOS_INSTALL_DIR</name>
<value>c:/FreeRTOSv10.0.0</value>
</variable>
<variable>
<name>SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR</name>
<value>G:/Code/simplelink_cc13x2_26x2_sdk_3_20_00_68</value>
</variable>
<variable>
<name>COM_TI_SIMPLELINK_CC13X2_26X2_SDK_INSTALL_DIR</name>
<value>G:/Code/simplelink_cc13x2_26x2_sdk_3_20_00_68</value>
</variable>
<variable>
<name>EXAMPLE_ROOT</name>
<value>G:/Code/simplelink_cc13x2_26x2_sdk_3_20_00_68/tools/iar</value>
</variable>
</group>
</iarUserArgVars>
IAR版本:IAR EW for Arm 8.40.1
目前,我手里没有测试板,IAR编译没有问题,不知道调试是否有问题。但是确实是你说的,sdk默认安装在C盘会省去很多事。
还有,我非常同意你最后的看法,软件安装在其他盘是很正常的。