打印

ST MCU 工具使用

[复制链接]
3300|11
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ap_lfs|  楼主 | 2012-3-30 17:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位大侠,在IAR6.3上如何移植V3.5stm32的固件和怎样建立工程等操作?
IAR用的是破戒版本。
谢谢。
沙发
ap_lfs|  楼主 | 2012-3-30 17:28 | 只看该作者
Building configuration: GPIO - Debug
Updating build tree...

9  file(s) deleted.
Updating build tree...
core_cm3.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\CMSIS\CM3\CoreSupport\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
main.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
misc.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
startup_stm32f10x_hd.s
stm32f10x_flash.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
stm32f10x_gpio.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
stm32f10x_it.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\project\stm32f10x_it.c"
Error while running C/C++ Compiler
stm32f10x_rcc.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
system_stm32f10x.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\CMSIS\CM3\DeviceSupport\ST\
STM32F10x\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler

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

使用特权

评论回复
板凳
ap_lfs|  楼主 | 2012-3-30 17:31 | 只看该作者
以上是我运行的结果,路径名字改了好几次,都是同样的问题。

请多指教。
非常谢谢。

使用特权

评论回复
地板
香水城| | 2012-3-30 17:53 | 只看该作者
#PROJ_DIR$    ==>> $PROJ_DIR$

使用特权

评论回复
5
ap_lfs|  楼主 | 2012-3-30 21:27 | 只看该作者
非常谢谢你,我改后结果如下。
改后仍然有错,形式为
Building configuration: GPIO - Debug
Updating build tree...

9  file(s) deleted.
Updating build tree...
core_cm3.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
main.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
misc.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
startup_stm32f10x_hd.s
stm32f10x_flash.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
stm32f10x_gpio.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
stm32f10x_it.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\project\stm32f10x_it.c"
Error while running C/C++ Compiler
stm32f10x_rcc.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler
system_stm32f10x.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
Error while running C/C++ Compiler

Total number of errors: 8
Total number of warnings: 0
请指教。
非常谢谢!

使用特权

评论回复
6
ap_lfs|  楼主 | 2012-3-30 21:47 | 只看该作者
这是在c/c++compiler下修改的的路径“
$PROJ_DIR$\..\
$PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc
在预定义中,我输入$PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc
,其他地址也是有错。
我的工程是保存在D:\stm32\GPIO下的,IAR是默认安装路径。
我用了IAR4.22,6.10,6.3都有类同的错误。
工程组分为USER(用户),EWRAM(*编译环境相干),FWLB(寸src里*。c的文件),
STARTUP有和没有都一样。这个路径我也换过几种了。
请诸位大侠多指教。

使用特权

评论回复
7
ap_lfs|  楼主 | 2012-3-30 21:51 | 只看该作者
v3.5的固件库是从ST的网上下的。

使用特权

评论回复
8
yinyangdianzi| | 2012-3-31 09:39 | 只看该作者
3.5库ST网站上可以直接下到

懒惰的同学可以在二姨家搜3.5固件库。

使用特权

评论回复
9
ap_lfs|  楼主 | 2012-3-31 20:20 | 只看该作者
v3.5固件库没有STMF10X-lib.h等,请问这正常吗?

使用特权

评论回复
10
ap_lfs|  楼主 | 2012-4-1 01:09 | 只看该作者
请问诸位大侠,怎样将.hex文件下栽到ST-LINK II里面?
非常谢谢

使用特权

评论回复
11
ap_lfs|  楼主 | 2012-4-1 01:14 | 只看该作者
另外,在此谢谢香水城版主,也感谢诸位将资料上传和共享的大侠。
也非常感谢各位。
促进交流,增强开发能力,中国工程一定更加雄起!

使用特权

评论回复
12
ap_lfs|  楼主 | 2012-4-1 13:09 | 只看该作者
请问各位大侠,有没有IAR FOR ARM 6.3中对STM32XXMCU
运行出错的以及解决办法的资料汇总。
如果能分享,将十分感激。
谢谢。顺祝商祺!

使用特权

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

本版积分规则

0

主题

29

帖子

1

粉丝