OpenEdv-开源电子网

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

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

[复制链接]

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
发表于 2015-6-4 09:22:39 | 显示全部楼层 |阅读模式
5金钱
Rebuild target 'stm32-dem0'
assembling startup_stm32f10x_hd.s...
compiling main.c...
E:\学习软件\MDK\ARM\Inc\ST\STM32F10x\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
compiling stm32f10x_it.c...
E:\学习软件\MDK\ARM\Inc\ST\STM32F10x\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
compiling misc.c...
..\FWlib\src\misc.c(24): error:  #5: cannot open source input file "misc.h": No such file or directory
compiling stm32f10x_adc.c...
..\FWlib\src\stm32f10x_adc.c(23): error:  #5: cannot open source input file "stm32f10x_adc.h": No such file or directory
compiling stm32f10x_bkp.c...
..\FWlib\src\stm32f10x_bkp.c(23): error:  #5: cannot open source input file "stm32f10x_bkp.h": No such file or directory
compiling stm32f10x_can.c...
..\FWlib\src\stm32f10x_can.c(23): error:  #5: cannot open source input file "stm32f10x_can.h": No such file or directory
compiling stm32f10x_cec.c...
..\FWlib\src\stm32f10x_cec.c(23): error:  #5: cannot open source input file "stm32f10x_cec.h": No such file or directory
compiling stm32f10x_crc.c...
..\FWlib\src\stm32f10x_crc.c(23): error:  #5: cannot open source input file "stm32f10x_crc.h": No such file or directory
compiling stm32f10x_dac.c...
..\FWlib\src\stm32f10x_dac.c(23): error:  #5: cannot open source input file "stm32f10x_dac.h": No such file or directory
compiling stm32f10x_dbgmcu.c...
..\FWlib\src\stm32f10x_dbgmcu.c(23): error:  #5: cannot open source input file "stm32f10x_dbgmcu.h": No such file or directory
compiling stm32f10x_dma.c...
..\FWlib\src\stm32f10x_dma.c(23): error:  #5: cannot open source input file "stm32f10x_dma.h": No such file or directory
compiling stm32f10x_exti.c...
..\FWlib\src\stm32f10x_exti.c(23): error:  #5: cannot open source input file "stm32f10x_exti.h": No such file or directory
compiling stm32f10x_flash.c...
..\FWlib\src\stm32f10x_flash.c(23): error:  #5: cannot open source input file "stm32f10x_flash.h": No such file or directory
compiling stm32f10x_fsmc.c...
..\FWlib\src\stm32f10x_fsmc.c(23): error:  #5: cannot open source input file "stm32f10x_fsmc.h": No such file or directory
compiling stm32f10x_gpio.c...
..\FWlib\src\stm32f10x_gpio.c(23): error:  #5: cannot open source input file "stm32f10x_gpio.h": No such file or directory
compiling stm32f10x_i2c.c...
..\FWlib\src\stm32f10x_i2c.c(23): error:  #5: cannot open source input file "stm32f10x_i2c.h": No such file or directory
compiling stm32f10x_iwdg.c...
..\FWlib\src\stm32f10x_iwdg.c(23): error:  #5: cannot open source input file "stm32f10x_iwdg.h": No such file or directory
compiling stm32f10x_pwr.c...
..\FWlib\src\stm32f10x_pwr.c(23): error:  #5: cannot open source input file "stm32f10x_pwr.h": No such file or directory
compiling stm32f10x_rcc.c...
..\FWlib\src\stm32f10x_rcc.c(23): error:  #5: cannot open source input file "stm32f10x_rcc.h": No such file or directory
compiling stm32f10x_rtc.c...
..\FWlib\src\stm32f10x_rtc.c(23): error:  #5: cannot open source input file "stm32f10x_rtc.h": No such file or directory
compiling stm32f10x_sdio.c...
..\FWlib\src\stm32f10x_sdio.c(23): error:  #5: cannot open source input file "stm32f10x_sdio.h": No such file or directory
compiling stm32f10x_spi.c...
..\FWlib\src\stm32f10x_spi.c(23): error:  #5: cannot open source input file "stm32f10x_spi.h": No such file or directory
compiling stm32f10x_tim.c...
..\FWlib\src\stm32f10x_tim.c(23): error:  #5: cannot open source input file "stm32f10x_tim.h": No such file or directory
compiling stm32f10x_usart.c...
..\FWlib\src\stm32f10x_usart.c(23): error:  #5: cannot open source input file "stm32f10x_usart.h": No such file or directory
compiling stm32f10x_wwdg.c...
..\FWlib\src\stm32f10x_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...
..\CMSIS\stm32f10x.h(8297): error:  #5: cannot open source input file "stm32f10x_conf.h": No such file or directory
Target not created

最佳答案

查看完整内容[请看2#楼]

我也遇到了 c/c++ d的路径没加
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

22

主题

751

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
1605
金钱
1605
注册时间
2015-6-10
在线时间
222 小时
发表于 2015-6-4 09:22:40 | 显示全部楼层
我也遇到了

c/c++ d的路径没加
回复

使用道具 举报

88

主题

7377

帖子

5

精华

资深版主

Rank: 8Rank: 8

积分
14980
金钱
14980
注册时间
2013-11-13
在线时间
1823 小时
发表于 2015-6-4 11:19:36 | 显示全部楼层
全部是头文件的错误,应该是头文件路径没添加
开往春天的手扶拖拉机
回复

使用道具 举报

7

主题

123

帖子

0

精华

初级会员

Rank: 2

积分
194
金钱
194
注册时间
2014-3-5
在线时间
3 小时
发表于 2015-6-4 14:08:48 | 显示全部楼层
应该头文件路径没加吧?
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-10 15:12:42 | 显示全部楼层


应该添加了的,这是截图?
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-10 15:14:48 | 显示全部楼层
回复【2楼】zuozhongkai:
---------------------------------
谢了啊,应该添加了的?这是截图
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-10 15:15:34 | 显示全部楼层
回复【3楼】破隆冬之晓:
---------------------------------
谢谢了,头文件也添加了的?你看下截图
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-10 15:17:24 | 显示全部楼层
回复【5楼】xingdongzhe583:
---------------------------------
回复【2楼】zuozhongkai:
---------------------------------
这是FWlib里添加的头文件
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-10 15:18:01 | 显示全部楼层
回复【2楼】zuozhongkai:
---------------------------------
这是FWlib里添加的头文件
回复

使用道具 举报

2

主题

11

帖子

0

精华

初级会员

Rank: 2

积分
52
金钱
52
注册时间
2011-3-12
在线时间
4 小时
发表于 2015-6-10 18:05:58 | 显示全部楼层
回复【8楼】xingdongzhe583:
---------------------------------
编译的路径添加了吗
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-17 15:45:32 | 显示全部楼层
回复【9楼】caisx8411:
---------------------------------
是的。问题解决了,谢谢啊
回复

使用道具 举报

11

主题

64

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
272
金钱
272
注册时间
2014-8-19
在线时间
32 小时
 楼主| 发表于 2015-6-17 15:45:59 | 显示全部楼层
回复【10楼】止天:
---------------------------------
嗯嗯解决了,谢谢你了
回复

使用道具 举报

1

主题

6

帖子

0

精华

新手上路

积分
30
金钱
30
注册时间
2015-9-11
在线时间
0 小时
发表于 2015-10-10 10:46:09 | 显示全部楼层

我文件也添加了,路径也加了,宏定义也加了,可是还是提示打不开所有的.h
文件
我对比了实验程序设置,也没有发现什么问题
截图如下


回复

使用道具 举报

0

主题

1

帖子

0

精华

新手入门

积分
8
金钱
8
注册时间
2016-7-15
在线时间
0 小时
发表于 2016-7-15 15:46:12 | 显示全部楼层
Cecilia 发表于 2015-10-10 10:46
我文件也添加了,路径也加了,宏定义也加了,可是还是提示打不开所有的.h
文件
我对比了实验程序设置 ...

楼主,你问题解决了吗,我也有同样的问题

回复

使用道具 举报

8

主题

68

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
335
金钱
335
注册时间
2016-7-12
在线时间
69 小时
发表于 2017-4-1 15:52:55 | 显示全部楼层
zuozhongkai 发表于 2015-6-4 11:19
全部是头文件的错误,应该是头文件路径没添加

路径添加了的,但还是出现头文件无法找到。
回复

使用道具 举报

8

主题

54

帖子

0

精华

初级会员

Rank: 2

积分
102
金钱
102
注册时间
2019-5-2
在线时间
43 小时
发表于 2020-3-17 20:21:46 | 显示全部楼层
流逝旋律 发表于 2017-4-1 15:52
路径添加了的,但还是出现头文件无法找到。

路径添加要具体到最后的文件夹才可以!!
回复

使用道具 举报

1

主题

4

帖子

0

精华

新手入门

积分
17
金钱
17
注册时间
2020-4-26
在线时间
2 小时
发表于 2020-5-3 21:58:22 | 显示全部楼层
xingdongzhe583 发表于 2015-6-17 15:45
回复【9楼】caisx8411:
---------------------------------
是的。问题解决了,谢谢啊

楼主咋解决的 我也出现了同样的问题
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-4-28 14:00

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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