OpenEdv-开源电子网

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

求助,,,keil突然间出现了很多错误

[复制链接]

10

主题

18

帖子

0

精华

初级会员

Rank: 2

积分
79
金钱
79
注册时间
2013-10-29
在线时间
0 小时
发表于 2013-10-29 17:20:00 | 显示全部楼层 |阅读模式

..\core\core_cm3.h(715): warning:  #47-D: incompatible redefinition of macro "SCS_BASE" (declared at line 687 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\core\core_cm3.h(723): warning:  #47-D: incompatible redefinition of macro "SCB" (declared at line 935 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\core\core_cm3.h(724): warning:  #47-D: incompatible redefinition of macro "SysTick" (declared at line 930 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\core\core_cm3.h(725): warning:  #47-D: incompatible redefinition of macro "NVIC" (declared at line 934 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(487): error:  #256: invalid redeclaration of type name "s32" (declared at line 23 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(491): error:  #256: invalid redeclaration of type name "sc32" (declared at line 27 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(495): error:  #256: invalid redeclaration of type name "vs32" (declared at line 31 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(499): error:  #256: invalid redeclaration of type name "vsc32" (declared at line 35 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(503): error:  #256: invalid redeclaration of type name "u32" (declared at line 39 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(507): error:  #256: invalid redeclaration of type name "uc32" (declared at line 43 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(511): error:  #256: invalid redeclaration of type name "vu32" (declared at line 47 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(515): error:  #256: invalid redeclaration of type name "vuc32" (declared at line 51 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(519): error:  #101: "RESET" has already been declared in the current scope
..\user\stm32f10x.h(519): error:  #101: "SET" has already been declared in the current scope
..\user\stm32f10x.h(519): error:  #256: invalid redeclaration of type name "FlagStatus" (declared at line 57 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(519): error:  #256: invalid redeclaration of type name "ITStatus" (declared at line 57 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(521): error:  #101: "DISABLE" has already been declared in the current scope
..\user\stm32f10x.h(521): error:  #101: "ENABLE" has already been declared in the current scope
..\user\stm32f10x.h(521): error:  #256: invalid redeclaration of type name "FunctionalState" (declared at line 59 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(524): error:  #101: "ERROR" has already been declared in the current scope
..\user\stm32f10x.h(524): error:  #101: "SUCCESS" has already been declared in the current scope
..\user\stm32f10x.h(524): error:  #256: invalid redeclaration of type name "ErrorStatus" (declared at line 62 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
..\user\stm32f10x.h(528): warning:  #47-D: incompatible redefinition of macro "HSE_Value" (declared at line 147 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_conf.h")
..\user\stm32f10x.h(564): error:  #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 58 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(663): error:  #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 154 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(675): error:  #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 163 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(687): error:  #256: invalid redeclaration of type name "CAN_FIFOMailBox_TypeDef" (declared at line 171 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(697): error:  #256: invalid redeclaration of type name "CAN_FilterRegister_TypeDef" (declared at line 177 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(731): error:  #256: invalid redeclaration of type name "CAN_TypeDef" (declared at line 203 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(758): error:  #256: invalid redeclaration of type name "CRC_TypeDef" (declared at line 213 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(782): error:  #256: invalid redeclaration of type name "DAC_TypeDef" (declared at line 232 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(792): error:  #256: invalid redeclaration of type name "DBGMCU_TypeDef" (declared at line 239 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(804): error:  #256: invalid redeclaration of type name "DMA_Channel_TypeDef" (declared at line 248 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(810): error:  #256: invalid redeclaration of type name "DMA_TypeDef" (declared at line 254 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
..\user\stm32f10x.h(895): error:  #256: invalid redeclaration of type name "EXTI_TypeDef" (declared at line 265 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
Target not created

类似于这样的错误。。之前编译的时候还好好的,今天一编译傻眼了这么多错误,,百度无果后,只能向论坛求助了。。

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

21

主题

146

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
467
金钱
467
注册时间
2013-7-12
在线时间
86 小时
发表于 2013-10-29 17:50:06 | 显示全部楼层
应该用的文件不加进来
回复 支持 反对

使用道具 举报

45

主题

115

帖子

1

精华

版主

Rank: 7Rank: 7Rank: 7

积分
679
金钱
679
注册时间
2013-9-23
在线时间
95 小时
发表于 2013-10-29 18:31:32 | 显示全部楼层
stm32f10x.h不要放在和project文件同一个文件夹内,放在其他文件夹然后include path添加路径
回复 支持 反对

使用道具 举报

1

主题

9

帖子

0

精华

新手上路

积分
33
金钱
33
注册时间
2013-9-1
在线时间
0 小时
发表于 2014-2-28 19:03:34 | 显示全部楼层
楼主解决问题了吗?求帮助
回复 支持 反对

使用道具 举报

10

主题

46

帖子

0

精华

初级会员

Rank: 2

积分
106
金钱
106
注册时间
2014-2-27
在线时间
0 小时
发表于 2014-4-4 15:23:22 | 显示全部楼层
回复【4楼】单数:
---------------------------------
我刚刚也遇到了这个问题 !研究了一下,给解决了!
You canyou up!
回复 支持 反对

使用道具 举报

1

主题

9

帖子

0

精华

新手上路

积分
33
金钱
33
注册时间
2013-9-1
在线时间
0 小时
发表于 2014-4-7 17:21:41 | 显示全部楼层
回复【5楼】我不后悔:
---------------------------------
连续扫描模式下的AD采集用过吗?
回复 支持 反对

使用道具 举报

10

主题

46

帖子

0

精华

初级会员

Rank: 2

积分
106
金钱
106
注册时间
2014-2-27
在线时间
0 小时
发表于 2014-4-8 13:31:05 | 显示全部楼层
回复【6楼】单数:
-没有呢!
You canyou up!
回复 支持 反对

使用道具 举报

1

主题

9

帖子

0

精华

新手上路

积分
33
金钱
33
注册时间
2013-9-1
在线时间
0 小时
发表于 2014-4-8 19:43:06 | 显示全部楼层
好吧,谢了
回复 支持 反对

使用道具 举报

0

主题

16

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
328
金钱
328
注册时间
2019-12-10
在线时间
55 小时
发表于 2020-1-17 15:54:56 | 显示全部楼层
我猜是哪个.h文件忘记写分好;了
回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-5-19 16:58

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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