STM32不同型号的芯片对应的启动文件如何选择

  • 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

/*  Tip: To avoid modifying this file each time you need to switch between these
        devices, you can define the device in your toolchain compiler preprocessor.

 - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers
   where the Flash memory density ranges between 16 and 32 Kbytes.
 - Low-density value line devices are STM32F100xx microcontrollers where the Flash
   memory density ranges between 16 and 32 Kbytes.
 - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers
   where the Flash memory density ranges between 64 and 128 Kbytes.
 - Medium-density value line devices are STM32F100xx microcontrollers where the 
   Flash memory density ranges between 64 and 128 Kbytes.   
 - High-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 256 and 512 Kbytes.
 - High-density value line devices are STM32F100xx microcontrollers where the 
   Flash memory density ranges between 256 and 512 Kbytes.   
 - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where
   the Flash memory density ranges between 512 and 1024 Kbytes.
 - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
  */

以上摘自
提示:为了避免每次需要在这些设备之间切换时都修改此文件,可以在工具链编译器预处理器中定义设备。

-低密度器件是STM32F101xx、STM32F102xx和STM32F103xx微控制器
其中flash范围在16-32Kbytes。对应的启动文件为:startup_stm32f10x_ld.s

-低密度超值型器件是STM32F100xx微控制器
其中flash范围在16-32Kbytes之间。对应的启动文件为:startup_stm32f10x_ld_vl.s

-中等密度设备为STM32F101xx、STM32F102xx和STM32F103xx微控制器
其中flash范围在64-128Kbytes之间。对应的启动文件为:startup_stm32f10x_md.s

-中等密度值线设备是STM32F100xx微控制器
其中flash范围在64-128Kbytes之间。对应的启动文件为:startup_stm32f10x_md_vl.s

-高密度设备是STM32F101xx和STM32F103xx微控制器
其中flash范围在256-512Kbytes之间。对应的启动文件为:startup_stm32f10x_hd.s

-高密度值线设备是STM32F100xx微控制器
其中flash范围在256-512 Kbytes之间。对应的启动文件为:startup_stm32f10x_ld_vl.s

-超高密度型器件是STM32F101xx和STM32F103xx微控制器
其中flash范围在512-1024 Kbytes之间。对应的启动文件为:startup_stm32f10x_xl.s

-互联网型设备是STM32F105xx和STM32F107xx微控制器。对应的启动文件为:startup_stm32f10x_cl.s

你可能感兴趣的:(STM32初学,stm32,嵌入式)