微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI无线射频设计 > CC1310 simplelink_cc13x0_sdk_1_50_00_08 在 IAR FOR ARM 8.20上编译不通过

CC1310 simplelink_cc13x0_sdk_1_50_00_08 在 IAR FOR ARM 8.20上编译不通过

时间:12-23 整理:3721RD 点击:

IAR版本:IAR FOR ARM 8.20

CC1310 SDK版本:simplelink_cc13x0_sdk_1_50_00_08

simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar 中的工程无法通过编译

报错如下所示,还请帮忙分析一下,什么原因:

Building configuration: rfPacketTx - Debug
Updating build tree...
Variable expansion failed.
  Offending text: "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source"
  Partial command line: ""C:\ti\simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\CC1310_LAUNCHXL.c" "-o" "C:\ti\
simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\Debug\Obj" "--no_cse" "--no_unroll" "--no_inline" "--no_code_motion"  
"--no_tbaa" "--no_clustering" "--no_scheduling" "--debug" "--endian=little" "--cpu=Cortex-M3" "-I$PROJ_DIR$" "-DDeviceFamily_CC13X0"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source" "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos/posix" "--debug" "--silent" "-e" "--aeabi" "--thumb" "--diag_suppress=Pa050" "-e" "--fpu=None"  
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "-Ol" "
Error while running C/C++ Compiler
Variable expansion failed.
  Offending text: "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source"
  Partial command line: ""C:\ti\simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\ccfg.c" "-o" "C:\ti\
simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\Debug\Obj" "--no_cse" "--no_unroll" "--no_inline" "--no_code_motion"  
"--no_tbaa" "--no_clustering" "--no_scheduling" "--debug" "--endian=little" "--cpu=Cortex-M3" "-I$PROJ_DIR$" "-DDeviceFamily_CC13X0"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source" "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos/posix" "--debug" "--silent" "-e" "--aeabi" "--thumb" "--diag_suppress=Pa050" "-e" "--fpu=None"  
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "-Ol" "
Variable expansion failed.
  Offending text: "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source"
  Partial command line: ""C:\ti\simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\main_nortos.c" "-o" "C:\ti\
simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\Debug\Obj" "--no_cse" "--no_unroll" "--no_inline" "--no_code_motion"  
"--no_tbaa" "--no_clustering" "--no_scheduling" "--debug" "--endian=little" "--cpu=Cortex-M3" "-I$PROJ_DIR$" "-DDeviceFamily_CC13X0"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source" "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos/posix" "--debug" "--silent" "-e" "--aeabi" "--thumb" "--diag_suppress=Pa050" "-e" "--fpu=None"  
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "-Ol" "
Error while running C/C++ Compiler
Error while running C/C++ Compiler
Variable expansion failed.
  Offending text: "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source"
  Partial command line: ""C:\ti\simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\rfPacketTx_nortos.c" "-o" "C:\ti\
simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\Debug\Obj" "--no_cse" "--no_unroll" "--no_inline" "--no_code_motion"  
"--no_tbaa" "--no_clustering" "--no_scheduling" "--debug" "--endian=little" "--cpu=Cortex-M3" "-I$PROJ_DIR$" "-DDeviceFamily_CC13X0"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source" "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos/posix" "--debug" "--silent" "-e" "--aeabi" "--thumb" "--diag_suppress=Pa050" "-e" "--fpu=None"  
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "-Ol" "
Variable expansion failed.
  Offending text: "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source"
  Partial command line: ""C:\ti\simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\smartrf_settings\smartrf_settings.c" "-o" "C:\ti\
simplelink_cc13x0_sdk_1_50_00_08\examples\nortos\CC1310_LAUNCHXL\drivers\rfPacketTx\iar\Debug\Obj" "--no_cse" "--no_unroll" "--no_inline" "--no_code_motion"  
"--no_tbaa" "--no_clustering" "--no_scheduling" "--debug" "--endian=little" "--cpu=Cortex-M3" "-I$PROJ_DIR$" "-DDeviceFamily_CC13X0"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/source" "-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos"  
"-I$SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR$/kernel/nortos/posix" "--debug" "--silent" "-e" "--aeabi" "--thumb" "--diag_suppress=Pa050" "-e" "--fpu=None"  
"--dlib_config" "$TOOLKIT_DIR$\INC\c\DLib_Config_Normal.h" "-Ol" "
Error while running C/C++ Compiler
Error while running C/C++ Compiler
 
Total number of errors: 0
Total number of warnings: 0

此致,敬礼!

我觉得是由于库和编译器的路径没配置好造成的。着重检查这两个配置。

从几个方面检查一下吧。

1. 环境变量是否设置正确

2. SDK是否安装在默认目录

3. IAR是否安装在默认目录

4. 路径上是否有中文字符或者空格

其它例程可以编译通过吗?

建议您将例程和IAR都放到默认位置试试

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top