想自己新建一个工程,自己写代码,没有想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设置如下图: |