STM32 启动文件选择

小容量产品是指闪存存储器容量在16K至32K字节之间的STM32F101xx、STM32F102xx和STM32F103xx微控制器。

中容量产品是指闪存存储器容量在64K至128K字节之间的STM32F101xx、STM32F102xx和STM32F103xx微控制器。

大容量产品是指闪存存储器容量在256K至512K字节之间的STM32F101xx和STM32F103xx微控制器。

互联型产品是指STM32F105xx和STM32F107xx微控制器。

 

 

- startup_stm32f10x_ld_vl.s: for STM32 Low density Value line devices 
- startup_stm32f10x_ld.s: for STM32 Low density devices 
- startup_stm32f10x_md_vl.s: for STM32 Medium density Value line devices 
- startup_stm32f10x_md.s: for STM32 Medium density devices 
- startup_stm32f10x_hd.s: for STM32 High density devices 
- startup_stm32f10x_xl.s: for STM32 XL density devices 
- startup_stm32f10x_cl.s: for STM32 Connectivity line devices 

cl:互联型产品,stm32f105/107系列 
vl:超值型产品,stm32f100系列 
xl:超高密度产品,stm32f101/103系列
ld:低密度产品,FLASH小于64K 
md:中等密度产品,FLASH=64 or 128 
hd:高密度产品,FLASH大于128

 

● Low-density devices: STM32F101xx, STM32F102xx and STM32F103xx
  microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
● Medium-density devices: STM32F101xx, STM32F102xx and STM32F103xx
  microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
● High-density devices: STM32F101xx and STM32F103xx microcontrollers where the
  Flash memory density ranges between 256 and 512 Kbytes.
● XL-density devices: STM32F101xx and STM32F103xx microcontrollers where the
  Flash memory density ranges between 512 and 1024 Kbytes.
● Medium-density Low-Power devices: STM32L15xx microcontrollers where the Flash
  memory density ranges between 64 and 128 Kbytes.
● Low Power Medium-density Plus devices:STM32L15xx and STM32L162xx
  microcontrollers where the Flash memory density is 256 Kbytes.
● Low Power High-density devices: STM32L15xx and STM32L162xx microcontrollers
  where the Flash memory density is 384 Kbytes.

转载于:https://www.cnblogs.com/king-77024128/articles/2822840.html

### 如何选择合适的STM32启动文件 对于不同型号的STM32微控制器,其启动文件的选择依赖于具体的硬件配置以及应用需求。每种类型的STM32都有特定的启动文件来初始化系统并设置堆栈指针等重要参数。 #### 基于内核架构和闪存大小匹配启动文件 不同的STM32系列具有不同的Cortex-M核心版本和支持的最大Flash容量,在挑选适合的启动文件时需考虑这些因素[^1]。例如: - 对于基于ARM Cortex-M3内核的产品线如STM32F1xx家族成员(包括但不限于STM32F100, STM32F101, STM32F103),应选用对应于此类处理器特性的startup_stm32f10x_md.s或相似名称的汇编源码作为启动程序。 - 如果目标设备属于高性能类别,则可能需要采用专门针对该级别的启动脚本;而对于低功耗系列产品来说,同样存在优化过的启动代码可供选取。 #### 遵循官方推荐的标准命名约定 为了便于识别与维护,意法半导体公司为各种型号制定了统一而清晰明了的名字模式用于描述相应的启动文件特性[^2]。通常情况下,这类文件名会包含以下几个部分的信息: - `startup_`前缀表示这是一个启动文件; - 中间部分标明具体适用的MCU系列,比如`stm32f10x`代表适用于大多数STM32F1系列单片机; - 后缀则用来区分不同的存储器布局选项,像`md`可能是Medium-density medium density devices的意思。 通过以上原则可以有效地定位到最贴合项目所需的启动资源,并确保开发工作的顺利开展。 ```c // 示例:定义中断向量表入口地址 __attribute__((section(".isr_vector"))) void (* const g_pfnVectors[])(void) = { (function_ptr_t)&__StackTop, Reset_Handler, }; ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值