搜索
bottom↓
回复: 10

EWARM5.4中如何控制不编译工程中的某个文件??????

[复制链接]

出0入0汤圆

发表于 2009-12-16 19:45:43 | 显示全部楼层 |阅读模式
RT
这是st library中自带的范例
它在不同的project中使用不同的startup文件,没有找到它是如何控制不编译某个文件
还请大虾指教~~

另,在V3.1.2版本的库中,有四个启动文件:
startup_stm32f10x_cl.s
startup_stm32f10x_hd.s
startup_stm32f10x_ld.s
startup_stm32f10x_md.s
初步知道ld、md、hd是用于不同容量的,譬如我用的STM32F103VBT6和STM32F103RBT6,应该使用startup_stm32f10x_md.s
但是startup_stm32f10x_cl.s这个文件是干嘛的呢?
下面注释中Connectivity line devices是什么意思呢?
;* Description        : STM32F10x Connectivity line devices vector table for
;*                      EWARM5.x toolchain.
;*                      This module performs:
;*                      - Set the initial SP
;*                      - Set the initial PC == __iar_program_start,
;*                      - Set the vector table entries with the exceptions ISR
;*                        address.
;*                      After Reset the Cortex-M3 processor is in Thread mode,
;*                      priority is Privileged, and the Stack is set to Main.

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

 楼主| 发表于 2009-12-16 19:50:15 | 显示全部楼层
抱歉,一不小心发错版面了
还请斑竹转移下

出0入0汤圆

发表于 2009-12-16 19:58:47 | 显示全部楼层

(原文件名:hd.jpg)

出0入0汤圆

 楼主| 发表于 2009-12-16 20:24:28 | 显示全部楼层
这个地方我有注意到
但是对于startup_stm32f10x_md.s等四个文件,不同于其他的.h文件。
在GCC中可以通过makefile文件来控制

我搜索整个project,这个宏定义只能控制HD对应的芯片的数据结构定义等
而并没有起到控制只编译startup_stm32f10x_md.s的目的

出0入0汤圆

发表于 2009-12-16 20:40:22 | 显示全部楼层
右键单击你不想参与编译的工程中的文件,弹出菜单中选option,把弹出界面中的exclude from builder选框勾上

出0入0汤圆

 楼主| 发表于 2009-12-16 20:42:31 | 显示全部楼层
解决问题了,多谢~~

出0入0汤圆

 楼主| 发表于 2009-12-16 22:09:08 | 显示全部楼层
但是startup_stm32f10x_cl.s这个文件是干嘛的呢?
下面注释中Connectivity line devices是什么意思呢?
;* Description        : STM32F10x Connectivity line devices vector table for
;*                      EWARM5.x toolchain.
;*                      This module performs:
;*                      - Set the initial SP
;*                      - Set the initial PC == __iar_program_start,
;*                      - Set the vector table entries with the exceptions ISR
;*                        address.
;*                      After Reset the Cortex-M3 processor is in Thread mode,
;*                      priority is Privileged, and the Stack is set to Main.

出0入0汤圆

发表于 2009-12-16 22:28:58 | 显示全部楼层
@note
- Low-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 16 and 32 Kbytes.
- Medium-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 32 and 128 Kbytes.
- High-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 256 and 512 Kbytes.   
- Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.

出0入0汤圆

 楼主| 发表于 2009-12-16 23:25:46 | 显示全部楼层
thanks, but where can i find this?

出0入0汤圆

发表于 2009-12-17 10:10:36 | 显示全部楼层
标准外设库 V3.1.2 stm32f10x_stdperiph_lib\STM32F10x_StdPeriph_Lib_V3.1.2\Project\Template\EWARMv5\readme.txt

出0入0汤圆

发表于 2010-3-20 21:20:09 | 显示全部楼层
mark
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-20 11:20

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表