打印
[技术问答]

编译出错 keil 重新安装 还是一样

[复制链接]
2574|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Rebuild target 'MyProject'
compiling core_cm0.c...
compiling system_M051Series.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
assembling startup_M051Series.s...
compiling retarget.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling main.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling Initialization.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling cpu.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling task_var.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling task_phase_shift.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling task_sample_filter.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling drv_ad.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
compiling drv_pwm.c...
..\LibM051Series\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(6182): error:  #5: cannot open source input file "SYS.h": No such file or directory
Target not created

QQ图片20140625112739.jpg (190.82 KB )

QQ图片20140625112739.jpg
沙发
bkn1860| | 2014-6-25 11:47 | 只看该作者
keil提示的没有找到SYS.h这个文件,软件卸载重新安装肯定解决不了的,找一个SYS.h文件 拷贝到M051Series.h所在的文件夹里面试试。

使用特权

评论回复
板凳
sdnumcu| | 2014-6-25 18:09 | 只看该作者
这明明是程序的问题吧

使用特权

评论回复
地板
jiweiyue|  楼主 | 2014-6-25 21:09 | 只看该作者
问题找到了  感谢上面两位  原来少了一个 路径

使用特权

评论回复
5
gaoyang9992006| | 2014-6-25 22:59 | 只看该作者
建议把需要的文件直接放到工程文件夹下,复制过去,就不必担心缺少各种头文件了。

使用特权

评论回复
6
haolaishi| | 2014-6-26 01:48 | 只看该作者
是不是没有包含这个SYS.h的路径了

使用特权

评论回复
7
缥缈九哥| | 2014-6-27 00:28 | 只看该作者
缺头文件

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

12

主题

64

帖子

0

粉丝