STM32學(xué)習(xí)筆記之中斷向量表,MDK程序啟動分析
;//
;//
;//
Stack_SizeEQU0x00000200;//定義堆棧大小
AREASTACK,NOINIT,READWRITE,ALIGN=3;//定義一個數(shù)據(jù)段按8字節(jié)對齊
Stack_MemSPACEStack_Size;//保留Stack_Size大小的堆棧空間
__initial_sp;//標號,代表堆棧頂部地址,后面有用
;//
;//
;//
Heap_SizeEQU0x00000020;//定義堆空間大小
AREAHEAP,NOINIT,READWRITE,ALIGN=3;//定義一個數(shù)據(jù)段,8字節(jié)對齊
__heap_base
Heap_MemSPACEHeap_Size;//保留Heap_Size的堆空間
__heap_limit;//標號,代表堆末尾地址,后面有用
PRESERVE8;//指示編譯器8字節(jié)對齊
THUMB;//指示編譯器為THUMB指令
;VectorTableMappedtoAddress0atReset
AREARESET,DATA,READONLY;//定義只讀數(shù)據(jù)段,其實放在CODE區(qū),位于0地址
EXTERNNMIException
EXTERNHardFaultException
EXTERNMemManageException
EXTERNBusFaultException
EXTERNUsageFaultException
EXTERNSVCHandler
EXTERNDebugMonitor
EXTERNPendSVC
EXTERNSysTickHandler;//聲明這些符號在外部定義,同C
;//在××it.c中實現(xiàn)這些函數(shù),中斷就能自動調(diào)用了
EXPORT__Vectors
__VectorsDCD__initial_sp;TopofStack//Cotex-M要求此處為堆棧頂部地址
DCDReset_Handler;ResetHandler
DCDNMIException;NMIHandler
DCDHardFaultException;HardFaultHandler
DCDMemManageException;MPUFaultHandler
DCDBusFaultException;BusFaultHandler
DCDUsageFaultException;UsageFaultHandler
DCD0;Reserved
DCD0;Reserved
DCD0;Reserved
DCD0;Reserved
DCDSVCHandler;SVCallHandler
DCDDebugMonitor;DebugMonitorHandler
DCD 0 ; Reserved