野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 21009|回复: 2

startup_stm32f10x_xx.s 启动代码文件选择

[复制链接]
发表于 2013-5-4 23:24:59 | 显示全部楼层 |阅读模式
本帖最后由 小学童鞋 于 2013-5-4 23:26 编辑

整体感觉stm32给的库文件太琐碎了,正如它的芯片型号一样繁多,例如启动文件:
网上查到的各个文件的解释是:
startup_stm32f10x_cl.s 互联型的器件,STM32F105xx,STM32F107xx
startup_stm32f10x_hd.s 大容量的STM32F101xx,STM32F102xx,STM32F103xx
startup_stm32f10x_hd_vl.s 大容量的STM32F100xx
startup_stm32f10x_ld.s 小容量的STM32F101xx,STM32F102xx,STM32F103xx
startup_stm32f10x_ld_vl.s 小容量的STM32F100xx
startup_stm32f10x_md.s 中容量的STM32F101xx,STM32F102xx,STM32F103xx
startup_stm32f10x_md_vl.s 中容量的STM32F100xx
startup_stm32f10x_xl.s FLASH在512K到1024K字节的STM32F101xx,STM32F102xx,STM32F103xx
固件库中的Release_Notes_for_STM32F10x_CMSIS.html写到:
STM32F10x CMSIS Startup files: startup_stm32f10x_xx.s
  • Add new startup files for STM32 Low-density Value line devices: startup_stm32f10x_ld_vl.s
  • Add new startup files for STM32 Medium-density Value line devices: startup_stm32f10x_md_vl.s
  • SystemInit() function is called from startup file (startup_stm32f10x_xx.s) before to branch to application main.
    To reconfigure the default setting of SystemInit() function, refer to system_stm32f10x.c file
  • GNU startup file for Low density devices (startup_stm32f10x_ld.s) is updated to fix compilation errors.  
    那到底啥是大容量,小容量啊?又查user manual才知道


    1.jpg
    2.jpg

    也就是说,例如我用STM32F103RB,那么选启动文件为startup_stm32f10x_md.s

    本文出自:http://hi.baidu.com/cwd502/item/cb1e161954189d42e75e06bf
回复

使用道具 举报

发表于 2013-7-15 21:25:52 | 显示全部楼层
基础知识啊
回复 支持 反对

使用道具 举报

发表于 2014-5-5 21:32:32 | 显示全部楼层
走过路过,不能错过mark
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-31 16:18 , Processed in 0.027575 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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