在keil 4中,建立了一个M0516LAN的工程,把core_cm0.c;system_M051Series.c;DrvGPIO.C这三个文件添加到了工程目录下,然后建立一个主函数C文件:example-1.c也添加到了工程里,主程序如下:
#include <stdio.h>
#include "M051Series.h"
#include "Driver\DrvGPIO.h"
main(void)
{
}
这是一个空函数,编译的时候却出现了以下几个问题,请高手指导一下,是不是我在建工程的时候哪里出错了?
编译框的错误信息如下:
Rebuild target 'Target 1'
assembling startup_M051Series.s...
compiling core_cm0.c...
compiling system_M051Series.c...
D:\Nuvoton\BSP Library\M051SeriesBSP\CMSIS\CM0\DeviceSupport\Nuvoton\M051Series\M051Series.h(76): error: #5: cannot open source input file "System\SysInfra.h": No such file or directory
compiling DrvGPIO.c...
D:\Nuvoton\BSP Library\M051SeriesBSP\NuvotonPlatform_Keil\Src\Driver\DrvGPIO.c(8): error: #5: cannot open source input file "DrvGPIO.h": No such file or directory
compiling example-1.c...
D:\Program Files\软件\KEIL MDK\ARM\Inc\Nuvoton\M051Series\M051Series.h(76): error: #5: cannot open source input file "System\SysInfra.h": No such file or directory
Target not created
|