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.

请问CC1310最新的SDK1.40.00里面的例程问题

Other Parts Discussed in Thread: CC1310, SYSBIOS, SYSCONFIG

  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版本上走了一边,导入没有问题,流程如下:

    1. 把示例代码工程文件夹(以empty工程为例)copy到桌面,示例代码路径为C:\TI\simplelink_cc13x0_sdk_1_40_00_10\examples\rtos\CC1310_LAUNCHXL\drivers
    2. 在桌面上的empty目录中打开IAR工程,路径为C:\Users\...\Desktop\empty\tirtos\iar\empty.eww
    3. 在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文件
    4. 打开Project-Add Project Connection窗口,点击OK,然后选择C:\Users\…\Desktop\empty\tirtos\iar下的empty.ipcf文件
    5. 在工程名上右键,选择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。

  • 还真没遇到过你的这个问题。

    很高兴你自己搞定了。

  • 我们安装经常是将很多软件安装到其他盘,减少C盘负载,而将SDK安装到C盘。但是IAR和TI的SDK必须都安装到默认C盘才可以,,,我也是经过血的教训,,,TI这块不知道能不能后期修改

  • 非常感谢你的答案,真是帮了很大的忙。

    公司采用的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"

    最后发现一点用没有,真是被折磨的怀疑人生了。

    真是还好看到你的答案。

  • 在google搜到你的帖子,

    本来想问你最后解决没有,跟你一样的问题。真是被折磨的怀疑人生。最后看到这篇帖子才找到答案。

    我实践发现只需要将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盘会省去很多事。

    还有,我非常同意你最后的看法,软件安装在其他盘是很正常的。