;//HeapSize(inBytes)<0x0-0xFFFFFFFF:8>
;//
Heap_SizeEQU0x00000020;//定义堆空间大小
AREAHEAP,NOINIT,READWRITE,ALIGN=3;//定义一个数据段,8字节对齐
__heap_base
Heap_MemSPACEHeap_Size;//保留Heap_Size的堆空间
__heap_limit;//标号,代表堆末尾地址,后面有用
PRESERVE8;//指示编译器8字节对齐
THUMB;//指示编译器为THUMB指令
;VectorTableMappedtoAddress0atReset
AREARESET,DATA,READONLY;//定义只读数据段,其实放在CODE区,位于0地址
EXTERNNMIExcepTIon
EXTERNHardFaultExcepTIon
EXTERNMemManageExcepTIon
EXTERNBusFaultExcepTIon
EXTERNUsageFaultException
EXTERNSVCHandler
EXTERNDebugMonitor
EXTERNPendSVC
EXTERNSysTickHandler;//声明这些符号在外部定义,同C
;//在××it.c中实现这些函数,中断就能自动调用了
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
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)