欢迎来到天天文库
浏览记录
ID:40559896
大小:343.50 KB
页数:10页
时间:2019-08-04
《LPC1778启动代码分析》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、LPC1788启动代码分析在KeiluVision4中新建一个基于NXP1788的工程后,会提示添加启动汇编代码startup_LPC177x_8x.S。该文件进行从汇编到C语言运行环境的初始化工作。[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
此文档下载收益归作者所有