IAR编译出现Error while running c:\ti\xdctools的解决方法

编译cc2630应用工程时出现 【Error while running "c:\ti\xdctools_3_30_06_67_core\xs" --xdcpath="C:\ti\ti......】

百度找到两个解决方法:

1. 重新安装iar,确保路径不含空格

2. 重新iar安装在d盘

有部分人通过以上方法解决了问题,但是我试过却都不行,没办法只能自己搞定


【分析过程】不想看的翻到后面的解决方法,如果解决不了,建议看看分析过程)

从错误信息中看出错误发生在执行【c:\ti\xdctools_3_30_06_67_core/xs】这个命令时,后续的一大大大串字符【--xdcpath="C:\ti\ti......】都是该命令的参数。

a. 打开cmd命令行

b. 进入c:\ti\xdctools_3_30_06_67_core\

c. 执行xs --xdcpath="C:\ti\ti......省略一大大大串,注意去掉换行,可复制到notepad++中将\r\n替换为空

执行后有如下打印:

Using RTSC configuration file: C:/ti/Projects/zstack/HomeAutomation/SampleSwitch
/CC26xx/app.cfg...

configuring app.xrm3 from package/cfg/app_prm3.cfg ...
warning: xdc.cfg.Program: "C:/ti/tirtos_simplelink_2_11_01_09/products/bios_6_41
_02_41/packages/ti/sysbios/hal/Hwi.xs", line 156: xdc.cfg.Program stack: For IAR
targets, Program.stack is ignored. The C and Hwi stack sizes are determined by
the size of the CSTACK section definition within the linker command file.
generating custom ROM library makefile ...
Starting build of library sources ...
1 [main] ? (456) D:\Jennic\cygwin\bin\sh.exe: *** fatal error - system sha
red memory version mismatch detected - 0x8A88009C/0x2D1E009C.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.
gmake: *** [C:/ti/Projects/zstack/HomeAutomation/SampleSwitch/CC26xx/src/sysbios
/sysbios.arm3] Error 256Build of libraries failed.

error: xdc.cfg.SourceDir: "C:/ti/xdctools_3_30_06_67_core/packages/xdc/cfg/Sourc
eDir.xs", line 184: xdc.cfg.SourceDir : Build of generated source libraries fail
ed: exit status = 2...... 再次省略一大串

红色字体部分翻译:

该问题可能是不兼容的cygwin版本导致,可以在”windows-开始“中输入“cygwin1.dll”搜索,并删除最新版本以外的版本,最新版本dll文件应该在你安装的目录中。如果没找到其他的版本,估计你需要重启一下电脑。

至此我们可以知道,可能是cygwin版本太老或者不兼容的原因,本人的cygwin1.dll文件还是08年的,重新安装配置之后就ok了,如何安装cygwin度娘知道。


【解决方法】

算上百度来的两种,这里就是第三种问题解决方法,指不定还有第四种第N种

3. 更新cygwin版本、或删除旧版本的cygwin


转载请注明出处:https://blog.csdn.net/jason_lm/article/details/80136807

猜你喜欢

转载自blog.csdn.net/jason_lm/article/details/80136807