資源描述:
《LPC1778啟動(dòng)代碼分析》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、LPC1788啟動(dòng)代碼分析在KeiluVision4中新建一個(gè)基于NXP1788的工程后,會(huì)提示添加啟動(dòng)匯編代碼startup_LPC177x_8x.S。該文件進(jìn)行從匯編到C語(yǔ)言運(yùn)行環(huán)境的初始化工作。[cpp]viewplaincopy1;/*****************************************************************************2;*@file:startup_LPC177x_8x.s3;*@purpose:CMSISCortex-M3CoreDeviceStartupFile4;*fortheNXPLP
2、C177x_8xDeviceSeries5;*@version:V1.206;*@date:07.October20107;*-------<<>>------------------8;*9;*Copyright(C)2010ARMLimited.Allrightsreserved.10;*ARMLimited(ARM)issupplyingthissoftwareforusewithCortex-M311;*processorbasedmicrocontrollers.Thisfilecanb
3、efreelydistributed12;*withindevelopmenttoolsthataresupportingsuchARMbasedprocessors.13;*14;*THISSOFTWAREISPROVIDED"ASIS".NOWARRANTIES,WHETHEREXPRESS,IMPLIED15;*ORSTATUTORY,INCLUDING,BUTNOTLIMITEDTO,IMPLIEDWARRANTIESOF16;*MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAPPLYTOTHISSOFTWARE.1
4、7;*ARMSHALLNOT,INANYCIRCUMSTANCES,BELIABLEFORSPECIAL,INCIDENTAL,OR18;*CONSEQUENTIALDAMAGES,FORANYREASONWHATSOEVER.19;*20;*****************************************************************************/212223;StackConfiguration24;StackSize(inBytes)<0x0-0xFFFFFFFF:8>25;2627Stack_Si
5、zeEQU0x0000020012AREASTACK,NOINIT,READWRITE,ALIGN=33Stack_MemSPACEStack_Size4__initial_sp567;HeapConfiguration8;HeapSize(inBytes)<0x0-0xFFFFFFFF:8>9;1011Heap_SizeEQU0x000004001213AREAHEAP,NOINIT,READWRITE,ALIGN=314__heap_base15Heap_MemSPACEHeap_Size16__heap_limit171819PRESERVE8
6、20THUMB212223;VectorTableMappedtoAddress0atReset2425AREARESET,DATA,READONLY26EXPORT__Vectors2728__VectorsDCD__initial_sp;TopofStack29DCDReset_Handler;ResetHandler30DCDNMI_Handler;NMIHandler31DCDHardFault_Handler;HardFaultHandler32DCDMemManage_Handler;MPUFaultHandler33DCDBusFault_Handler;
7、BusFaultHandler34DCDUsageFault_Handler;UsageFaultHandler35DCD0;Reserved36DCD0;Reserved37DCD0;Reserved1DCD0;Reserved2DCDSVC_Handler;SVCallHandler3DCDDebugMon_Handler;DebugMonitorHandler4DCD0;Reserved5DCDPendSV_Handler;PendSVHandler6DCDSysTick_Handler;SysTickHandler78;Exter