手上有一套程序是基于兆易GD32F130C6T6,keil4_MDK平台写的,电脑重装了系统,现在变成编译不通过了,找不到原因在哪,现需高手远程协助帮忙解决。解决后有红包哦。
编译后的问题如下:
Build target 'Target 1'
compiling main.c...
..\user\main.c(3): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\user\main.c: #include "gd32f1x0.h"
..\user\main.c: ^
..\user\main.c: ..\user\main.c: 0 warnings, 1 error
compiling system_gd32f1x0.c...
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: ..\Libraries\CMSIS\system_gd32f1x0.c: 0 warnings, 1 error
compiling gd32f1x0_it.c...
..\user\gd32f1x0_it.h(16): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\user\gd32f1x0_it.h: #include "gd32f1x0.h"
..\user\gd32f1x0_it.h: ^
..\user\gd32f1x0_it.h: ..\user\gd32f1x0_it.c: 0 warnings, 1 error
compiling gd32f1x0_rcc.c...
..\Libraries\Peripherals\inc\gd32f1x0_rcc.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_rcc.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_rcc.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_rcc.h: ..\Libraries\Peripherals\src\gd32f1x0_rcc.c: 0 warnings, 1 error
compiling gd32f1x0_misc.c...
..\Libraries\Peripherals\inc\gd32f1x0_misc.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_misc.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_misc.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_misc.h: ..\Libraries\Peripherals\src\gd32f1x0_misc.c: 0 warnings, 1 error
compiling gd32f1x0_gpio.c...
..\Libraries\Peripherals\inc\gd32f1x0_gpio.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_gpio.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_gpio.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_gpio.h: ..\Libraries\Peripherals\src\gd32f1x0_gpio.c: 0 warnings, 1 error
compiling gd32f1x0_fmc.c...
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_fmc.h: ..\Libraries\Peripherals\src\gd32f1x0_fmc.c: 0 warnings, 1 error
compiling gd32f1x0_usart.c...
..\Libraries\Peripherals\inc\gd32f1x0_usart.h(20): error: #5: cannot open source input file "gd32f1x0.h": No such file or directory
..\Libraries\Peripherals\inc\gd32f1x0_usart.h: #include "gd32f1x0.h"
..\Libraries\Peripherals\inc\gd32f1x0_usart.h: ^
..\Libraries\Peripherals\inc\gd32f1x0_usart.h: ..\Libraries\Peripherals\src\gd32f1x0_usart.c: 0 warnings, 1 error
assembling startup_gd32f1x0.s...
Target not created
|