STM32 启动文件 解析.doc
文本预览下载声明
;/*****************************************************************************/
;/* STM32F10x.s: Startup file for ST STM32F10x device series */
;/*****************************************************************************/
;/* Use Configuration Wizard in Context Menu */
;/*****************************************************************************/
;/* This file is part of the uVision/ARM development tools. */
;/* Copyright (c) 2005-2007 Keil Software. All rights reserved. */
;/* This software may only be used under the terms of a valid, current, */
;/* end user licence from KEIL for a compatible version of KEIL software */
;/* development tools. Nothing else gives you the right to use this software. */
;/*****************************************************************************/
;// h Stack Configuration
;// o Stack Size (in Bytes) 0x0-0xFFFFFFFF:8
;// /h
Stack_Size EQU 0 ;AREA 伪指令用于定义一个代码段或数据段
AREA STACK, NOINIT, READWRITE, ALIGN=3 ;NOINIT:指定此数据段仅仅保留了内存单元,而没有将各初始值写入内存单元,或者将各个内存单元值初始化为0
Stack_Mem SPACE Stack_Size ;分配连续 Stack_Size 字节的存储单元并初始化为 0
__initial_sp
;// h Heap Configuration
;// o Heap Size (in Bytes) 0x0-0xFFFFFFFF:8
;// /h
Heap_Size EQU 0 AREA HEAP, NOINIT, READWRITE, ALIGN=3
__heap_base
Heap_Mem SPACE Heap_Size
__heap_limit
;PRESERVE8 指令指定当前文件保持堆栈八字节对齐。 它设置 PRES8 编译属性以通知链接器。
;链接器检查要求堆栈八字节对齐的任何代码是否仅由保持堆栈八字节对齐的代码直接或间接地调用。
PRESERVE8
THUMB ;之后的都是THUMB指令
; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY
EXPORT __Vectors ;EXPORT:在
显示全部