打印

请教STM32固件库移植的问题

[复制链接]
4725|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
想自己新建一个工程,自己写代码,没有想STM32的固件库移植这么麻烦,老是出错,应该是文件包含那块错了,我都已经按照教程上的说了那样设置,可是还是出错,求各位大侠指教啊,错误提示如下:
Building configuration: LED - Debug
Updating build tree...
main.c  
Fatal Error[Pe005]: could not open source file "stm32f10x_rcc.c" G:\Project Design\STM32\IAR\project\LED\main.c 11
            searched: "G:\Project Design\STM32\IAR\project\LED\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\CMSIS\CM3\CoreSupport\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\
STM32F10x\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\STM32F10x_StdPeriph_Driver\inc\
"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\Common\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\STM3210C_EVAL\"
            searched: "D:\Program Files\IAR Systems\arm\INC\"
Error while running C/C++ Compiler
stm32f10x_flash.c  
Fatal Error[Pe005]: could not open source file "G:\Project Design\STM32\IAR\Libraries\src\stm32f10x_flash.c"
Error while running C/C++ Compiler
stm32f10x_gpio.c  
Fatal Error[Pe005]: could not open source file "G:\Project Design\STM32\IAR\Libraries\src\stm32f10x_gpio.c"
Error while running C/C++ Compiler
stm32f10x_lib.c  
Fatal Error[Pe005]: could not open source file "G:\Project Design\STM32\IAR\Libraries\src\stm32f10x_lib.c"
Error while running C/C++ Compiler
stm32f10x_nvic.c  
Fatal Error[Pe005]: could not open source file "G:\Project Design\STM32\IAR\Libraries\src\stm32f10x_nvic.c"
Error while running C/C++ Compiler
stm32f10x_rcc.c  
Fatal Error[Pe005]: could not open source file "G:\Project Design\STM32\IAR\Libraries\src\stm32f10x_rcc.c"
Error while running C/C++ Compiler
stm32f10x_vector.c  
Fatal Error[Pe005]: could not open source file "stm32f10x_lib.h" G:\Project Design\STM32\IAR\project\LED\EWARM\stm32f10x_vector.c 25
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\CMSIS\CM3\CoreSupport\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\CMSIS\CM3\DeviceSupport\ST\
STM32F10x\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Libraries\STM32F10x_StdPeriph_Driver\inc\
"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\Common\"
            searched: "G:\Project Design\STM32\IAR\project\LED\EWARM\..\..\..\Utilities\STM32_EVAL\STM3210C_EVAL\"
            searched: "D:\Program Files\IAR Systems\arm\INC\"
Error while running C/C++ Compiler
system_stm32f10x.c  
Error[Pe020]: identifier "FLASH_BASE" is undefined G:\Project Design\STM32\IAR\project\LED\system_stm32f10x.c 235
Error while running C/C++ Compiler

Total number of errors: 8
Total number of warnings: 0


我的固件库路径:G:\Project Design\STM32\IAR\Libraries和
G:\Project Design\STM32\IAR\Utilities\STM32_EVAL
工程路径:G:\Project Design\STM32\IAR\project\LED\EWARM
这个版本的固件库里找不到stm32f10x_lib.h文件啊?
在工程options设置如下图:

QQ截图20111109171718.jpg (72.33 KB )

QQ截图20111109171718.jpg
沙发
airwill| | 2011-11-10 08:33 | 只看该作者
我看,大体上都是路径问题。好解决的

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

40

帖子

1

粉丝