TI中文支持网
TI专业的中文技术问题搜集分享网站

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

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 – DebugUpdating 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++ CompilerVariable 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++ CompilerError while running C/C++ CompilerVariable 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++ CompilerError while running C/C++ Compiler 
Total number of errors: 0Total number of warnings: 0

此致,敬礼!

xyz549040622:

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

Felix ZF:

从几个方面检查一下吧。

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

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

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

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

da qin zheng sheng:

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

Susan Yang:

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

赞(0)
未经允许不得转载:TI中文支持网 » CC1310 simplelink_cc13x0_sdk_1_50_00_08 在 IAR FOR ARM 8.20上编译不通过
分享到: 更多 (0)