Rebuild target 'Target 1'
assembling Startup.s...
compiling init.c...
init.c(60): warning: #111-D: statement is unreachable
init.c(62): warning: #1-D: last line of file ends without a newline
linking...
init.axf: Warning: L6373W: libattrs.map file not found in System Library directory C:\Program Files\ARM\ADSv1_2\LIB\armlib\. Library selection may be impaired.
init.axf: Error: L6242E: Cannot link object __main.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object stkheap2.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object kernel.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object libspace.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object exit.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object lib_init.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object sys_exit.o as its attributes are incompatible with the image attributes.
init.axf: Error: L6242E: Cannot link object use_semi.o as its attributes are incompatible with the image attributes.
Target not created
没有的,睡了一晚上,第二天编译就这样了,睡之前我看了下 Startup.s,不知道改动了没,会不是是有啥关系啊?
追答最好核对一下startup.s文件。
另外我很好奇,你用MDK开发,为啥调用ADS的lib?这个lib是通用的么?我没用过ADS所以问一下。
呵呵 问题解决了 是安装ADS之后的系统环境变量改变了,修改之后解决了,谢谢您哈,给您了》。。。
KEIL FOR ARM芯片跟头文件哪里下载啊?
你在新建工程之后,选择芯片的时候,不要选择ARM,因为那只是对内核的编译编辑,麻烦的很,直接选你的芯片。比如如果是STM32F417.。。就去 ST Micro...下面找。比如如果是S3C2440.。。就去 Samsung下面找。比如如果是LPC2138.。。就去 NXP下面找 如果你用的芯片都没有,再去ARM里找内核,然后网上...