完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
你好 参照http://www.deyisupport.com/question_answer/wireless_connectivity/f/45/t/105178.aspx
新建了 hello 的工程, 编译的时候 出现 这样的错误,请问是不是环境变量设置错了 |
|
相关推荐
9个回答
|
|
大家在安装 ti-rtos 的时候 注意默认是安装在c:/ti 下面的。
如果安装在其他地方, 需要修改 tirtos_cc13xx_cc26xx_2_21_00_06.custom_argvars 里面 的 c:/t 但是改正之后 还是出现一个错误: Building configuration: hello - Debug Updating build tree... 1 file(s) deleted. Updating build tree... Performing Pre-Build Action Error while running "f:/TI-RTOS/xdctools_3_32_00_06_core/xs" --xdcpath="f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/packages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/pa ckages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01 /packages" iar.tools.configuro -c "E:software installIAR7503arm" --cc "E:software installIAR7503armbiniccarm.exe" --device "CC2650F128" --compileOptions "-o "F:IAR projectTIRTOShelloDebugObj" --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -f "F:IAR projectTIRTOShello/configPkg/compiler.opt.defs" --diag_suppress=Pa050 -If:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272 -Dewarm --debug --silent -e --fpu=None --dlib_config "E:software install IAR7503armINCcDLib_Config_Normal.h" -Ol" --linkOptions "-o "F:IAR projectTIRTOShelloDebugExehello.out" --map "F:IAR projectTIRTOShelloDebug Listhello.map" --log libraries,initialization,redirects,veneers --log_file "F:IAR projectTIRTOShelloDebugListhello.log" --config "F:IAR projectTIRTOS hello/hello_CC2650DK_5XD.icf" -f "F:IAR projectTIRTOShello/configPkg/linker.cmd" f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272/driverlib/bin/iar/driverlib.lib --silent --cpu=Cortex-M3 --entry=__iar_program_start --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --semihosting --entry __iar_program_start --vfe" --profile release --projFile "F:IAR projectTIRTOShello hello.ewp" Total number of errors: 1 Total number of warnings: 0 |
|
|
|
liulei007 发表于 2018-6-21 10:23 多半就是这个导致的。这个问题搞定了吗? |
|
|
|
改正 环境变量 之后 编译 又有新的错误 我进行clean 之后 再rebuild all的 Building configuration: hello - Debug Updating build tree... 1 file(s) deleted. Updating build tree... Performing Pre-Build Action Error while running "f:/TI-RTOS/xdctools_3_32_00_06_core/xs" --xdcpath="f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/packages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/pa ckages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01 /packages" iar.tools.configuro -c "E:software installIAR7503arm" --cc "E:software installIAR7503armbiniccarm.exe" --device "CC2650F128" --compileOptions "-o "F:IAR projectTIRTOShelloDebugObj" --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -f "F:IAR projectTIRTOShello/configPkg/compiler.opt.defs" --diag_suppress=Pa050 -If:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272 -Dewarm --debug --silent -e --fpu=None --dlib_config "E:software install IAR7503armINCcDLib_Config_Normal.h" -Ol" --linkOptions "-o "F:IAR projectTIRTOShelloDebugExehello.out" --map "F:IAR projectTIRTOShelloDebug Listhello.map" --log libraries,initialization,redirects,veneers --log_file "F:IAR projectTIRTOShelloDebugListhello.log" --config "F:IAR projectTIRTOS hello/hello_CC2650DK_5XD.icf" -f "F:IAR projectTIRTOShello/configPkg/linker.cmd" f:/TI-RTOS/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272/driverlib/bin/iar/driverlib.lib --silent --cpu=Cortex-M3 --entry=__iar_program_start --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --semihosting --entry __iar_program_start --vfe" --profile release --projFile "F:IAR projectTIRTOShello hello.ewp" Total number of errors: 1 Total number of warnings: 0 |
|
|
|
liulei007 发表于 2018-6-21 10:23 http://processors.wiki.ti.com/index.php/Creating_TI-RTOS_Applications_in_IAR_Embedded_Workbench#Generating_the_Files_for_the_TI-RTOS_Examplessh 上面link里有一段描述 We highly recommend that you install TI-RTOS using the standalone installer in the default location (C:/ti). If you install this way, the pre-generated examples work out of box from the default location. The pre-generated examples are located in TI-RTOS_INSTALL_DIR/tirtos_####_#_##_##_##_examples. If you want to install TI-RTOS in a location other than default or through the CCS App Centers, a special set of steps must be followed to regenerate the examples with updated paths. See Generating the Files for the TI-RTOS Examples. Generating the Files for the TI-RTOS Examples If you installed TI-RTOS in a location other than the default location (i.e. "C:ti"), or if you would like to regenerate the examples, follow the steps below.
|
|
|
|
shenzhenqide 发表于 2018-6-21 11:10 我按照 上面的要求,更改了 makefile 里面的对应 信息。 但是依旧编译不过, 是不是由于我的IAR 安装路径 存在空格 呢? |
|
|
|
workspace和project file路径下不可以有空格 http://processors.wiki.ti.com/index.php/Creating_TI-RTOS_Applications_in_IAR_Embedded_Workbench |
|
|
|
广陵云峰 发表于 2018-6-21 11:42 你好! 我的workplace 和 project file 位置是 F:/TI-RTOS 没有空格! 我把TI-RTOS 重新安装在 C盘默认ti 的位置, 然后重新新建工程, 编译的时候依然报错: 从报错信息来看, 应该和IAR 的安装路径都有关系, 我的IAR 安装路径 存在空格符, 应该就是 这个导致的 ! 因为我看了 makefile 里面有设置 IAR INSTALL DIR 的地方 不知道 分析得对不对 Performing Pre-Build Action "c:/ti/xdctools_3_32_00_06_core/xs" --xdcpath="c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages;c:/ti/tirt os_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01/packages" iar.tools.configuro -c "E:software installIAR7503arm" --cc "E:software installIAR7503armbiniccarm.exe" --device "CC2650F128" --compileOptions "-o F:TI-RTOS helloDebugObj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -f F:TI-RTOS hello/configPkg/compiler.opt.defs --diag_suppress=Pa050 -Ic:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272 -Dewarm --debug --silent -e --fpu=None --dlib_config "E:software installIAR7503armINCcDLib_Config_Normal.h" -Ol" --linkOptions "-o F:TI-RTOShelloDebugExehello.out --map F: TI-RTOShelloDebugListhello.map --log libraries,initialization,redirects,veneers --log_file F:TI-RTOShelloDebugListhello.log --config F:TI-RTOS hello/hello_CC2650DK_5XD.icf -f F:TI-RTOShello/configPkg/linker.cmd c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272/driverlib/bin/iar/driverlib.lib --silent --cpu=Cortex-M3 --entry=__iar_program_start --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --semihosting --entry __iar_program_start --vfe" --profile release --projFile "F:TI-RTOShellohello.ewp" Using RTSC configuration file: F:/TI-RTOS/hello/hello.cfg... making package.mak (because of package.bld) ... generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ... configuring hello.xrm3 from package/cfg/hello_prm3.cfg ... generating custom ROM library makefile ... Starting build of library sources ... making F:/TI-RTOS/hello/src/sy***ios/rom_sy***ios.arm3 ... gmake[1]: Entering directory `F:/TI-RTOS/hello/src/sy***ios' Preprocessing library source files ... E:/software: not found gmake[1]: *** [rom_knl_Clock_lib.pp] Error 127 gmake[1]: *** Waiting for unfinished jobs.... E:/software: not found gmake[1]: *** [rom_knl_Idle_lib.pp] Error 127 E:/software: not found gmake[1]: *** [rom_knl_Intrinsics_lib.pp] Error 127 E:/software: not found gmake[1]: *** [rom_knl_Event_lib.pp] Error 127 E:/software: not found E:/software: not found gmake[1]: *** [rom_knl_Mailbox_lib.pp] Error 127 E:/software: not found gmake[1]: *** [rom_knl_Queue_lib.pp] Error 127 gmake[1]: *** [rom_knl_Semaphore_lib.pp] Error 127 E:/software: not found gmake[1]: *** [rom__BIOS_lib.pp] Error 127gmake[1]: Leaving directory `F:/TI-RTOS/hello/src/sy***ios' gmake: *** [F:/TI-RTOS/hello/src/sy***ios/rom_sy***ios.arm3] Error 2 Build of libraries failed. error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_32_00_06_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_32_00_06_core/packages/xdc/cfg/Main.xs", line 160: Error: Configuration failed! gmake.exe: *** [package/cfg/hello_prm3.xdl] Error 1 gmake.exe: *** Deleting file `package/cfg/hello_prm3.xdl' gmake.exe: *** [package/cfg/hello_prm3.xdl] Deleting file `package/cfg/hello_prm3.h' gmake.exe: *** [package/cfg/hello_prm3.xdl] Deleting file `package/cfg/hello_prm3.c' js: "C:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/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_32_00_06_core/xs" --xdcpath="c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/tidrivers_cc13xx_cc26xx_2_21_00_04/packages;c:/ti/tirt os_cc13xx_cc26xx_2_21_00_06/products/bios_6_46_01_37/packages;c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/uia_2_01_00_01/packages" iar.tools.configuro -c "E:software installIAR7503arm" --cc "E:software installIAR7503armbiniccarm.exe" --device "CC2650F128" --compileOptions "-o F:TI-RTOS helloDebugObj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --debug --endian=little --cpu=Cortex-M3 -f F:TI-RTOS hello/configPkg/compiler.opt.defs --diag_suppress=Pa050 -Ic:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272 -Dewarm --debug --silent -e --fpu=None --dlib_config "E:software installIAR7503armINCcDLib_Config_Normal.h" -Ol" --linkOptions "-o F:TI-RTOShelloDebugExehello.out --map F: TI-RTOShelloDebugListhello.map --log libraries,initialization,redirects,veneers --log_file F:TI-RTOShelloDebugListhello.log --config F:TI-RTOS hello/hello_CC2650DK_5XD.icf -f F:TI-RTOShello/configPkg/linker.cmd c:/ti/tirtos_cc13xx_cc26xx_2_21_00_06/products/cc26xxware_2_24_03_17272/driverlib/bin/iar/driverlib.lib --silent --cpu=Cortex-M3 --entry=__iar_program_start --redirect _Printf=_PrintfSmall --redirect _Scanf=_ScanfSmall --semihosting --entry __iar_program_start --vfe" --profile release --projFile "F:TI-RTOShellohello.ewp" Total number of errors: 1 Total number of warnings: 0 |
|
|
|
liulei007 发表于 2018-6-21 11:52 IAR我用的默认地址,不管是导入例程还是新建Hello例程都OK。 你可以按下面步骤操作导入已建好的例程,如果还是报错,应该就是IAR安装问题啦 http://processors.wiki.ti.com/index.php/Creating_TI-RTOS_Applications_in_IAR_Embedded_Workbench |
|
|
|
广陵云峰 发表于 2018-6-21 11:59 你好! 这个 好像不关 makefile 的问题。 1. 我重新安装了IAR(不在C盘), 路径上只是保持没有存在空格。 2. TI-RTOS core 安装在默认 C:ti 3. 没有修改tirtos 的makefile (保持原文档内容不变) 4. 编译通过! 所以 和makefile 内容无关,只是IAR 的安装路径 存在空格导致了编译出错! |
|
|
|
只有小组成员才能发言,加入小组>>
348 浏览 1 评论
543 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
789 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
660 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1140 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
78浏览 29评论
268浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
261浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
210浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
68浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 02:26 , Processed in 0.971372 second(s), Total 65, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号