野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14680|回复: 3

软件安装问题吗

[复制链接]
发表于 2015-4-5 00:24:06 | 显示全部楼层 |阅读模式
..\..\Libraries\CMSIS\stm32f10x.h(511): error:  #256: invalid redeclaration of type name "uint32_t" (declared at line 46 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(511): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(512): error:  #20: identifier "__IO" is undefined
compiling bsp_led.c...
..\..\Libraries\CMSIS\core_cm3.h(21): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\core_cm3.h(21): error:  #18: expected a ")"
..\..\Libraries\CMSIS\core_cm3.h(31): warning:  #223-D: function "LED_GPIO_Config" declared implicitly
..\..\Libraries\CMSIS\core_cm3.h(36): warning:  #223-D: function "LED1" declared implicitly
..\..\Libraries\CMSIS\core_cm3.h(36): error:  #20: identifier "ON" is undefined
..\..\Libraries\CMSIS\core_cm3.h(38): error:  #20: identifier "OFF" is undefined
..\..\Libraries\CMSIS\core_cm3.h(40): warning:  #223-D: function "LED2" declared implicitly
..\..\Libraries\CMSIS\core_cm3.h(44): warning:  #223-D: function "LED3" declared implicitly
..\..\Libraries\CMSIS\core_cm3.h(51): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\core_cm3.h(51): error:  #18: expected a ")"
..\..\Libraries\CMSIS\core_cm3.h(53): error:  #20: identifier "nCount" is undefined
..\..\Libraries\CMSIS\system_stm32f10x.h(53): error:  #20: identifier "uint32_t" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(495): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(495): error:  #256: invalid redeclaration of type name "int32_t" (declared at line 40 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(495): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(496): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(496): error:  #256: invalid redeclaration of type name "int16_t" (declared at line 39 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(496): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(497): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(497): error:  #256: invalid redeclaration of type name "int8_t" (declared at line 38 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(497): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(499): error:  #20: identifier "__I" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(499): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(500): error:  #20: identifier "__I" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(500): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(501): error:  #20: identifier "__I" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(501): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(511): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(511): error:  #256: invalid redeclaration of type name "uint32_t" (declared at line 46 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(511): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(512): error:  #20: identifier "__IO" is undefined
..\..\Libraries\CMSIS\stm32f10x.h(512): error:  #256: invalid redeclaration of type name "uint16_t" (declared at line 45 of "D:\v4\ARM\ARMCC\bin\..\include\stdint.h")
..\..\Libraries\CMSIS\stm32f10x.h(512): error:  #65: expected a ";"
..\..\Libraries\CMSIS\stm32f10x.h(513): error:  #20: identifier "__IO" is undefined
"..\..\Output\流水灯.axf" - 781 Errors, 54 Warning(s).
Target not created1.安装路径没有出现中文
也使用管理员身份装mdk
使用管理员身份打开MDK及破解软件破解。重装了好几遍还是不行
回复

使用道具 举报

发表于 2015-4-5 03:39:40 | 显示全部楼层
估计  头文件没有包含  
       C/C++选项卡没设置好
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2015-4-5 11:25:53 | 显示全部楼层
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
"..\Output\STM-DEMO1.axf" - 26 Errors, 0 Warning(s).
Target not created这是那个头文件没包含进去,咋回事啊?
回复 支持 反对

使用道具 举报

发表于 2015-4-5 11:32:41 | 显示全部楼层
不是头文件没包含,根本就是文件路径找不到
《零角度玩转stm32-v2》里边新建工程篇有讲,请楼主严重按照步骤来啊,楼主应该是在工程选项设置时没完全设置啊
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-1-2 01:31 , Processed in 0.032841 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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