哎 后悔死了 没买原子哥的开发板 当初买的这块板子tft-lcd用寄存器实在难操作 不知道画板子的怎么想的 数据口不在一起啊 分了三处啊 有木有 木有办法啊 TFT-LCD还不能跳过啊 后面很多实验都是用到的啊 所以就调出板子自带的程序 库函数写的 版本3.4.0 哎哎哎。。。 于是乎我就在想 后面涉及到TFT-lcd部分用库函数 其余的还是用寄存器 可是悲剧了 编译时出现这错误啊 啊 啊啊 啊 。。。。。
Build target 'Target 1'
compiling stm32f10x_it.c...
compiling main.c...
.\Libraries\CMSIS\Core\CM3\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")
.\Libraries\CMSIS\Core\CM3\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")
.\Libraries\CMSIS\Core\CM3\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")
.\Libraries\CMSIS\Core\CM3\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")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(470): error: #256: invalid redeclaration of type name "s32" (declared at line 23 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(474): error: #256: invalid redeclaration of type name "sc32" (declared at line 27 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(478): error: #256: invalid redeclaration of type name "vs32" (declared at line 31 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(482): error: #256: invalid redeclaration of type name "vsc32" (declared at line 35 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(486): error: #256: invalid redeclaration of type name "u32" (declared at line 39 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(490): error: #256: invalid redeclaration of type name "uc32" (declared at line 43 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(494): error: #256: invalid redeclaration of type name "vu32" (declared at line 47 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(498): error: #256: invalid redeclaration of type name "vuc32" (declared at line 51 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(502): error: #101: "RESET" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(502): error: #101: "SET" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(502): error: #256: invalid redeclaration of type name "FlagStatus" (declared at line 57 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(502): error: #256: invalid redeclaration of type name "ITStatus" (declared at line 57 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(504): error: #101: "DISABLE" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(504): error: #101: "ENABLE" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(504): error: #256: invalid redeclaration of type name "FunctionalState" (declared at line 59 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(507): error: #101: "ERROR" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(507): error: #101: "SUCCESS" has already been declared in the current scope
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(507): error: #256: invalid redeclaration of type name "ErrorStatus" (declared at line 62 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(511): warning: #47-D: incompatible redefinition of macro "HSE_Value" (declared at line 147 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_conf.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(547): error: #256: invalid redeclaration of type name "ADC_TypeDef" (declared at line 58 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(646): error: #256: invalid redeclaration of type name "BKP_TypeDef" (declared at line 154 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(658): error: #256: invalid redeclaration of type name "CAN_TxMailBox_TypeDef" (declared at line 163 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(670): error: #256: invalid redeclaration of type name "CAN_FIFOMailBox_TypeDef" (declared at line 171 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(680): error: #256: invalid redeclaration of type name "CAN_FilterRegister_TypeDef" (declared at line 177 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(714): error: #256: invalid redeclaration of type name "CAN_TypeDef" (declared at line 203 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(741): error: #256: invalid redeclaration of type name "CRC_TypeDef" (declared at line 213 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(765): error: #256: invalid redeclaration of type name "DAC_TypeDef" (declared at line 232 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(775): error: #256: invalid redeclaration of type name "DBGMCU_TypeDef" (declared at line 239 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(787): error: #256: invalid redeclaration of type name "DMA_Channel_TypeDef" (declared at line 248 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(793): error: #256: invalid redeclaration of type name "DMA_TypeDef" (declared at line 254 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
.\Libraries\CMSIS\Core\CM3\stm32f10x.h(878): error: #256: invalid redeclaration of type name "EXTI_TypeDef" (declared at line 265 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
compiling core_cm3.c...
assembling startup_stm32f10x_hd.s...
compiling wdg.c...
compiling exti.c...
compiling key.c...
compiling AsciiLib.c...
compiling GLCD.c...
compiling HzLib.c...
compiling led.c...
compiling timer.c...
compiling delay.c...
compiling sys.c...
compiling usart.c...
Target not created
哪位大侠解释下 为何啊 哪里重复定义了啊 ??坐等啊 伤不起啊 lcd这里卡了不知道多少天了啊
|