stm32用keil4编译时出现的错误,求大神帮忙

2019-08-23 14:39发布

Rebuild target 'stm32-dem0'
assembling startup_stm32f10x_hd.s...
compiling main.c...
E:学习软件MDKARMIncSTSTM32F10xstm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
compiling stm32f10x_it.c...
E:学习软件MDKARMIncSTSTM32F10xstm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
compiling misc.c...
..FWlibsrcmisc.c(24): error:  #5: cannot open source input file "misc.h": No such file or directory
compiling stm32f10x_adc.c...
..FWlibsrcstm32f10x_adc.c(23): error:  #5: cannot open source input file "stm32f10x_adc.h": No such file or directory
compiling stm32f10x_bkp.c...
..FWlibsrcstm32f10x_bkp.c(23): error:  #5: cannot open source input file "stm32f10x_bkp.h": No such file or directory
compiling stm32f10x_can.c...
..FWlibsrcstm32f10x_can.c(23): error:  #5: cannot open source input file "stm32f10x_can.h": No such file or directory
compiling stm32f10x_cec.c...
..FWlibsrcstm32f10x_cec.c(23): error:  #5: cannot open source input file "stm32f10x_cec.h": No such file or directory
compiling stm32f10x_crc.c...
..FWlibsrcstm32f10x_crc.c(23): error:  #5: cannot open source input file "stm32f10x_crc.h": No such file or directory
compiling stm32f10x_dac.c...
..FWlibsrcstm32f10x_dac.c(23): error:  #5: cannot open source input file "stm32f10x_dac.h": No such file or directory
compiling stm32f10x_dbgmcu.c...
..FWlibsrcstm32f10x_dbgmcu.c(23): error:  #5: cannot open source input file "stm32f10x_dbgmcu.h": No such file or directory
compiling stm32f10x_dma.c...
..FWlibsrcstm32f10x_dma.c(23): error:  #5: cannot open source input file "stm32f10x_dma.h": No such file or directory
compiling stm32f10x_exti.c...
..FWlibsrcstm32f10x_exti.c(23): error:  #5: cannot open source input file "stm32f10x_exti.h": No such file or directory
compiling stm32f10x_flash.c...
..FWlibsrcstm32f10x_flash.c(23): error:  #5: cannot open source input file "stm32f10x_flash.h": No such file or directory
compiling stm32f10x_fsmc.c...
..FWlibsrcstm32f10x_fsmc.c(23): error:  #5: cannot open source input file "stm32f10x_fsmc.h": No such file or directory
compiling stm32f10x_gpio.c...
..FWlibsrcstm32f10x_gpio.c(23): error:  #5: cannot open source input file "stm32f10x_gpio.h": No such file or directory
compiling stm32f10x_i2c.c...
..FWlibsrcstm32f10x_i2c.c(23): error:  #5: cannot open source input file "stm32f10x_i2c.h": No such file or directory
compiling stm32f10x_iwdg.c...
..FWlibsrcstm32f10x_iwdg.c(23): error:  #5: cannot open source input file "stm32f10x_iwdg.h": No such file or directory
compiling stm32f10x_pwr.c...
..FWlibsrcstm32f10x_pwr.c(23): error:  #5: cannot open source input file "stm32f10x_pwr.h": No such file or directory
compiling stm32f10x_rcc.c...
..FWlibsrcstm32f10x_rcc.c(23): error:  #5: cannot open source input file "stm32f10x_rcc.h": No such file or directory
compiling stm32f10x_rtc.c...
..FWlibsrcstm32f10x_rtc.c(23): error:  #5: cannot open source input file "stm32f10x_rtc.h": No such file or directory
compiling stm32f10x_sdio.c...
..FWlibsrcstm32f10x_sdio.c(23): error:  #5: cannot open source input file "stm32f10x_sdio.h": No such file or directory
compiling stm32f10x_spi.c...
..FWlibsrcstm32f10x_spi.c(23): error:  #5: cannot open source input file "stm32f10x_spi.h": No such file or directory
compiling stm32f10x_tim.c...
..FWlibsrcstm32f10x_tim.c(23): error:  #5: cannot open source input file "stm32f10x_tim.h": No such file or directory
compiling stm32f10x_usart.c...
..FWlibsrcstm32f10x_usart.c(23): error:  #5: cannot open source input file "stm32f10x_usart.h": No such file or directory
compiling stm32f10x_wwdg.c...
..FWlibsrcstm32f10x_wwdg.c(23): error:  #5: cannot open source input file "stm32f10x_wwdg.h": No such file or directory
compiling core_cm3.c...
compiling system_stm32f10x.c...
..CMSISstm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
Target not created
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
14条回答
止天
1楼-- · 2019-08-23 20:16
我也遇到了

c/c++ d的路径没加
taizonglai
2楼-- · 2019-08-23 21:38
全部是头文件的错误,应该是头文件路径没添加
破隆冬之晓
3楼-- · 2019-08-23 21:39
 精彩回答 2  元偷偷看……
xingdongzhe583
4楼-- · 2019-08-24 00:55


应该添加了的,这是截图?
xingdongzhe583
5楼-- · 2019-08-24 05:59
回复【2楼】zuozhongkai:
---------------------------------
谢了啊,应该添加了的?这是截图
xingdongzhe583
6楼-- · 2019-08-24 10:20
回复【3楼】破隆冬之晓:
---------------------------------
谢谢了,头文件也添加了的?你看下截图

一周热门 更多>