Build target 'MyFirestJob'
compiling
STM32f10x_flash.c...
librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
librarystm32f10x_flash.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
librarystm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_lib.c...
librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
librarystm32f10x_lib.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
librarystm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
.librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
interruptstm32f10x_it.c: 0 warnings, 1 error
compiling main.c...
.librarystm32f10x_map.h(26): error: #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
#include "stm32f10x_conf.h"
srcmain.c: 0 warnings, 1 error
".MyFirstJob.axf" - 6 Error(s), 0 Warning(s).
Target not created
搞了好几天了。这个KEIL5.1 MDK就是不行啊,谁知道怎么回事。32的库也是在官网下的
"stm32f10x_conf.h" 这个库的定义不符合keil的要求,你最好找找相关的定义库的资料,库最好是放在和源程序一个目录里,自定义添加的库在主程序中最好这样引用 #include "stm32f10x_conf.h"
一周热门 更多>