请问CC1310最新的SDK1.40.00里面的例程问题
simplelink_cc13x0_sdk_1_30_00_06 里面的例程,想跑跑例程不管是RTOS/NORTOS新建IAR工程时有很多链接链不到,路径错了,好不容易自己修改后可以编译成功了,download又不行。请TI技术能否试试,确定一下你们是否遇到这样的问题。之前一个版本都没有问题啊。
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
.)
写错了我指的是simplelink_cc13x0_sdk_1_40_00_10。
安装前还要专门做第三步kernel编译吗,我可以编译成功。我看里面写的有点复杂,为什么TI就不能出一个简单的向导呢,感觉很乱。之前的tirtos_cc13xx_cc26xx_2_21_00_06都没有这样那样的问题。
第四步的链接也有问题,链接到的ipcf文件后工程目录的文件路径是/iar/里面,而你们的工程main文件在其上一个目录。
另外,编译成功后下载不了,已经按之前版本修改过option中的设置,tirtos_cc13xx_cc26xx_2_21_00_06的可以。提示错误如下图:
我在IAR 8.11.2版本上走了一边,导入没有问题,流程如下:
- 把示例代码工程文件夹(以empty工程为例)copy到桌面,示例代码路径为C:\TI\simplelink_cc13x0_sdk_1_40_00_10\examples\rtos\CC1310_LAUNCHXL\drivers
- 在桌面上的empty目录中打开IAR工程,路径为C:\Users\...\Desktop\empty\tirtos\iar\empty.eww
- 在IAR中,打开tool-Configure Custom Argument Variables窗口,在Workspace页点Import按钮,选择C:\TI\simplelink_cc13x0_sdk_1_40_00_10\tools\iar下的SIMPLELINK_CC13XX_CC26XX_SDK.custom_argvars文件
- 打开Project-Add Project Connection窗口,点击OK,然后选择C:\Users\…\Desktop\empty\tirtos\iar下的empty.ipcf文件
- 在工程名上右键,选择rebuild all
谢谢你的及时解答,按照你说的步骤我再试了一遍,编译不成功,好像少文件,在这个路径看没有。如下图,我的iar版本是7.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
按照你的方法编译kernal过不了,我还专门把SDK重新卸载重装了,还是不行。错误如下图:
环境变量设置了吗?
是使用的IAR 8.11吗?
环境变量是在工程里加入路径 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没有任何问题啊,都用过很久的呀。
用IAR 8.11 可以了。编译可以通过。谢谢~
嗯,最新版的simplelink_cc13x0_sdk_1_40_00_10,对IAR的版本有要求的。
你好,请问,我是按照如下步骤操作的,但是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
请问有遇到过吗?感谢。
自己搞定了。
做了如下修改:
1. IAR装在系统盘。
2. IAR安装了ARM.CMSIS.5.0.1.pack。
估计是需要IAR装载系统盘。我的系统是Win 8.1。
还真没遇到过你的这个问题。
很高兴你自己搞定了。