OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 15494|回复: 6

用keil 5编译工程时,每次打开一个新工程都会提示缺少某某头文件,请问原子哥是什么原因?

[复制链接]

2

主题

8

帖子

0

精华

初级会员

Rank: 2

积分
50
金钱
50
注册时间
2013-9-2
在线时间
4 小时
发表于 2015-2-7 09:16:59 | 显示全部楼层 |阅读模式
Build target 'Target 1'
assembling startup_stm32f10x_hd.s...
compiling test.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
test.c: 0 warnings, 1 error
compiling delay.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling sys.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling usart.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling led.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling beep.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\BEEP\beep.c: 0 warnings, 1 error
compiling key.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\KEY\key.c: 0 warnings, 1 error
compiling exti.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\EXTI\exti.c: 0 warnings, 1 error
compiling wdg.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\WDG\wdg.c: 0 warnings, 1 error
compiling timer.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\TIMER\timer.c: 0 warnings, 1 error
compiling tpad.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\TPAD\tpad.c: 0 warnings, 1 error
compiling oled.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\OLED\oled.c: 0 warnings, 1 error
compiling ILI93xx.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\LCD\ILI93xx.c: 0 warnings, 1 error
compiling rtc.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\RTC\rtc.c: 0 warnings, 1 error
compiling wkup.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\WKUP\wkup.c: 0 warnings, 1 error
compiling adc.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\ADC\adc.c: 0 warnings, 1 error
compiling dac.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\DAC\dac.c: 0 warnings, 1 error
compiling dma.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\DMA\dma.c: 0 warnings, 1 error
compiling myiic.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\24CXX\myiic.c: 0 warnings, 1 error
compiling 24cxx.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\24CXX\24cxx.c: 0 warnings, 1 error
compiling spi.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\SPI\spi.c: 0 warnings, 1 error
compiling flash.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\FLASH\flash.c: 0 warnings, 1 error
compiling rs485.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\RS485\rs485.c: 0 warnings, 1 error
compiling can.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\CAN\can.c: 0 warnings, 1 error
compiling touch.c...
..\HARDWARE\TOUCH\touch.c(1): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\TOUCH\touch.c: 0 warnings, 1 error
compiling remote.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\REMOTE\remote.c: 0 warnings, 1 error
compiling joypad.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\JOYPAD\joypad.c: 0 warnings, 1 error
compiling adxl345.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\ADXL345\adxl345.c: 0 warnings, 1 error
compiling ds18b20.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\DS18B20\ds18b20.c: 0 warnings, 1 error
compiling dht11.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\DHT11\dht11.c: 0 warnings, 1 error
compiling 24l01.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\NRF24L01\24l01.c: 0 warnings, 1 error
compiling ps2.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\HARDWARE\PS2\ps2.c: 0 warnings, 1 error
compiling mouse.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\HARDWARE\PS2\mouse.c: 0 warnings, 1 error
compiling stmflash.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\STMFLASH\stmflash.c: 0 warnings, 1 error
compiling rda5820.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\RDA5820\rda5820.c: 0 warnings, 1 error
compiling audiosel.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\AUDIOSEL\audiosel.c: 0 warnings, 1 error
compiling ov7670.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\OV7670\ov7670.c: 0 warnings, 1 error
compiling sccb.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\HARDWARE\OV7670\sccb.c: 0 warnings, 1 error
compiling sram.c...
..\HARDWARE\SRAM\sram.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>        
..\HARDWARE\SRAM\sram.c: 0 warnings, 1 error
compiling sdio_sdcard.c...
..\HARDWARE\SDIO\sdio_sdcard.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include "stm32f10x_lib.h" 
..\HARDWARE\SDIO\sdio_sdcard.c: 0 warnings, 1 error
compiling usmart.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\USMART\usmart.c: 0 warnings, 1 error
compiling usmart_config.c...
..\SYSTEM\delay\delay.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>      
..\USMART\usmart_config.c: 0 warnings, 1 error
compiling usmart_str.c...
compiling malloc.c...
compiling ff.c...
compiling diskio.c...
..\HARDWARE\SDIO\sdio_sdcard.h(3): error:  #5: cannot open source input file "stm32f10x_lib.h": No such file or directory
  #include "stm32f10x_lib.h" 
..\FATFS\src\diskio.c: 0 warnings, 1 error
compiling exfuns.c...
..\FATFS\exfuns\exfuns.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\FATFS\exfuns\exfuns.c: 0 warnings, 1 error
compiling fattester.c...
..\FATFS\exfuns\fattester.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>       
..\FATFS\exfuns\fattester.c: 0 warnings, 1 error
compiling mycc936.c...
..\TEXT\fontupd.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\FATFS\exfuns\mycc936.c: 0 warnings, 1 error
compiling fontupd.c...
..\TEXT\fontupd.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\TEXT\fontupd.c: 0 warnings, 1 error
compiling text.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\TEXT\text.c: 0 warnings, 1 error
compiling bmp.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\PICTURE\bmp.c: 0 warnings, 1 error
compiling gif.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\PICTURE\gif.c: 0 warnings, 1 error
compiling jpeg.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\PICTURE\jpeg.c: 0 warnings, 1 error
compiling piclib.c...
..\SYSTEM\sys\sys.h(3): error:  #5: cannot open source input file "stm32f10x_map.h": No such file or directory
  #include <stm32f10x_map.h>
..\PICTURE\piclib.c: 0 warnings, 1 error
"..\OBJ\test.axf" - 52 Error(s), 0 Warning(s).
Target not created.


      上面的问题我目前的解决办法是先在当前工程文件夹内搜索缺少的头文件,之后再添加到当前工程头文件索引目录中,如果头文件没有的,我会把工程用keil3 或4版本的去打开工程,之后把缺少的头文件重新拷贝到当前工程中然后在用keil 5打开,这样子知道不报缺少头文件,整个工程就会编译通过。
     请问原子哥是不是我keil 5软件中缺少安装包(packed)呢?但是我把我用的都已经升级到最新,把STM32F1XX 和STM32F4XX包都已安装。为什么keil 3或4打开不报错,keil 5反而会报错呢?? 
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165540
金钱
165540
注册时间
2010-12-1
在线时间
2117 小时
发表于 2015-2-7 22:31:48 | 显示全部楼层
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 反对

使用道具 举报

3

主题

2170

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
5781
金钱
5781
注册时间
2013-11-22
在线时间
1212 小时
发表于 2015-2-7 22:33:16 | 显示全部楼层
你用的资料是老版本的了   试试去下载最新的资料
http://openedv.com/posts/list/13912.htm
回复 支持 反对

使用道具 举报

2

主题

8

帖子

0

精华

初级会员

Rank: 2

积分
50
金钱
50
注册时间
2013-9-2
在线时间
4 小时
 楼主| 发表于 2015-2-9 10:31:26 | 显示全部楼层


明白了,谢谢!
回复 支持 反对

使用道具 举报

1

主题

7

帖子

0

精华

新手上路

积分
31
金钱
31
注册时间
2015-4-29
在线时间
0 小时
发表于 2015-5-4 11:10:43 | 显示全部楼层
楼主你是怎么解决的,我也是MDK5编译战舰的例程啊。还是没弄懂要怎么解决。
回复 支持 反对

使用道具 举报

1

主题

7

帖子

0

精华

新手上路

积分
31
金钱
31
注册时间
2015-4-29
在线时间
0 小时
发表于 2015-5-4 16:34:38 | 显示全部楼层
回复【4楼】永不止步:
---------------------------------
楼主求详细说明下你是怎么弄得呗。还是没能搞定。现在很急啊,,
回复 支持 反对

使用道具 举报

2

主题

22

帖子

0

精华

初级会员

Rank: 2

积分
124
金钱
124
注册时间
2015-6-22
在线时间
29 小时
发表于 2015-9-26 14:15:16 | 显示全部楼层
楼主求详细说明下你是怎么弄得呗。还是没能搞定。现在很急啊,,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-18 05:56

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表