STM32學(xué)習(xí)筆記之中斷向量表,MDK程序啟動(dòng)分析
;//
;//
;//
Stack_SizeEQU0x00000200;//定義堆棧大小
AREASTACK,NOINIT,READWRITE,ALIGN=3;//定義一個(gè)數(shù)據(jù)段按8字節(jié)對(duì)齊
Stack_MemSPACEStack_Size;//保留Stack_Size大小的堆??臻g
__initial_sp;//標(biāo)號(hào),代表堆棧頂部地址,后面有用
;//
;//
;//
Heap_SizeEQU0x00000020;//定義堆空間大小
AREAHEAP,NOINIT,READWRITE,ALIGN=3;//定義一個(gè)數(shù)據(jù)段,8字節(jié)對(duì)齊
__heap_base
Heap_MemSPACEHeap_Size;//保留Heap_Size的堆空間
__heap_limit;//標(biāo)號(hào),代表堆末尾地址,后面有用
PRESERVE8;//指示編譯器8字節(jié)對(duì)齊
THUMB;//指示編譯器為T(mén)HUMB指令
;VectorTableMappedtoAddress0atReset
AREARESET,DATA,READONLY;//定義只讀數(shù)據(jù)段,其實(shí)放在CODE區(qū),位于0地址
EXTERNNMIException
EXTERNHardFaultException
EXTERNMemManageException
EXTERNBusFaultException
EXTERNUsageFaultException
EXTERNSVCHandler
EXTERNDebugMonitor
EXTERNPendSVC
EXTERNSysTickHandler;//聲明這些符號(hào)在外部定義,同C
;//在××it.c中實(shí)現(xiàn)這些函數(shù),中斷就能自動(dòng)調(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