查看: 3702|回复: 2

关于ucgui移植问题 @亮哥,急!急!急!

[复制链接]
  • TA的每日心情
    郁闷
    2014-6-4 09:15
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    发表于 2014-6-4 09:21:05 | 显示全部楼层 |阅读模式
    分享到:
    本帖最后由 Paphiopedilum 于 2014-6-4 09:25 编辑
    1. ..\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")
    2. ..\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")
    3. ..\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")
    4. ..\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")
    5. ..\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")
    6. ..\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")
    7. ..\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")
    8. ..\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")
    9. ..\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")
    10. ..\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")
    11. ..\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")
    12. ..\USER\stm32f10x.h(519): error:  #101: "RESET" has already been declared in the current scope
    13. ..\USER\stm32f10x.h(519): error:  #101: "SET" has already been declared in the current scope
    14. ..\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")
    15. ..\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")
    16. ..\USER\stm32f10x.h(521): error:  #101: "DISABLE" has already been declared in the current scope
    17. ..\USER\stm32f10x.h(521): error:  #101: "ENABLE" has already been declared in the current scope
    18. ..\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")
    19. ..\USER\stm32f10x.h(524): error:  #101: "ERROR" has already been declared in the current scope
    20. ..\USER\stm32f10x.h(524): error:  #101: "SUCCESS" has already been declared in the current scope
    21. ..\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")
    22. ..\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")
    23. ..\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")
    24. ..\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")
    25. ..\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")
    26. ..\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")
    27. ..\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")
    28. ..\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")
    29. ..\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")
    30. ..\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")
    31. ..\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")
    32. ..\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")
    33. ..\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")
    34. ..\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")
    35. ..\USER\stm32f10x.h(920): error:  #256: invalid redeclaration of type name "FLASH_TypeDef" (declared at line 279 of "D:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_map.h")
    36. compiling LCDRLE16.c...
    37. ..\ucgui\Core\LCDRLE16.c(73): error:  #20: identifier "LCD_Color2" is undefined
    38. ..\ucgui\Core\LCDRLE16.c(74): warning:  #111-D: statement is unreachable
    39. ..\ucgui\Core\LCDRLE16.c(74): warning:  #223-D: function "Index" declared implicitly
    复制代码
    移植ucgui的报错信息,我用的是3.5版本的库,网上搜到的答案是“最后在寄存器中引用了 stm32f10x_map.h以及XXX.lib.h之类的文件,如果使用V3.5的库请去掉这些,直接引用stm32f10x.h” 不知道怎么操作,求好心人
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2016-8-25 12:42
  • 签到天数: 692 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2014-6-4 17:02:43 | 显示全部楼层
    楼主用的那个平台呢?我给你一个工程参考一下,你明显调用了一个头文件stm32f10x_map.h
    先把这个头文件替换成  #include "stm32f10x.h" 试一下
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    郁闷
    2014-6-4 09:15
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

     楼主| 发表于 2014-6-4 18:47:31 | 显示全部楼层
    fengye5340 发表于 2014-6-4 17:02
    楼主用的那个平台呢?我给你一个工程参考一下,你明显调用了一个头文件stm32f10x_map.h
    先把这个头文件替换 ...

    谢谢您的回复,现在好了,我先在裸机上移植的,然后才添加到ucos中!!!!
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-26 16:12 , Processed in 0.137374 second(s), 18 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.