Page 1 objs\debug\Startup.si Command Line: C:\ghs\comp_202114\asarm.exe -annotate_call_return -elf -b0 -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Can_ZX_K14xM\examples\Can_Z20K148M\Generated\inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Platform_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Platform_ZX_K14xM\StartUp\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\McalLib_ZX_K14xM\Inc\Devices -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\McalLib_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Mcu_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Dem_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Det_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Dio_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Base_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Os_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Port_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Rte_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Can_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\EcuM_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Gpt_ZX_K14xM\Inc -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Base_ZX_K14xM\Inc\MemMap -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Can_ZX_K14xM\examples\Can_Z20K148M\Src\CanIf_ZX_K14xM\Inc\ -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Dma_ZX_K14xM\Inc\ -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Wdg_ZX_K14xM\Inc\ -IC:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\WdgIf_ZX_K14xM\Inc\ -IC:\ghs\comp_202114\lib\thumba2 -cpu=cortexm4f -fpu=vfpv3_d16 -fpu=single -thumb_divide -dbo=D:\Users\xukai\Documents\My Projects\Project3\objs\debug\Startup.dbo -dwarf2 -source=C:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Platform_ZX_K14xM\StartUp\Src\Ghs\Startup.s --gh_oname=objs\debug\Startup.o --gh_md_append=objs\debug\Startup.dtmp -o objs\debug\Startup.o -list=objs\debug\Startup.lst objs\debug\Startup.si Original File: objs\debug\Startup.si Source File: C:\ZhiXin\Z20K14xM_MCAL_RTM_1.2.0\eclipse\plugins\Platform_ZX_K14xM\StartUp\Src\Ghs\Startup.s Directory: D:\Users\xukai\Documents\My Projects\Project3 Host OS: Windows EASE: Copyright (C) 1983-2021 Green Hills Software. All Rights Reserved. Release: Compiler v2021.1.4 Build Directory: [Directory] COMP-VAL-WIN1:C:/autoval2/v2021.1-2021-04-25/win64-comp Revision: [VCInfo] http://toolsvc/branches/release-branch-2021-1-comp/src@696881 (built by auto-compiler) Revision Date: Mon Apr 26 12:33:25 2021 Release Date: Mon Apr 26 08:01:05 2021 0 #line 1 "C:\\ZhiXin\\Z20K14xM_MCAL_RTM_1.2.0\\eclipse\\plugins\\Platform_ZX_K14xM\\StartUp\\Src\\Ghs\\Startup.s" 1 2 3 4 5 6 7 8 9 10 11 12 .section ".init_table", "a" 00000000 00000004 13 .long 4 00000004 00000000* 14 .long __RAM_RAM_CODE_INIT_START 00000008 00000000* 15 .long __ROM_RAM_CODE_INIT_START 0000000c 00000000* 16 .long __ROM_RAM_CODE_INIT_END 00000010 00000000* 17 .long __RAM_DATA_INIT_START 00000014 00000000* 18 .long __ROM_DATA_INIT_START 00000018 00000000* 19 .long __ROM_DATA_INIT_END 0000001c 00000000* 20 .long __RAM_MCAL_DATA_INIT_START 00000020 00000000* 21 .long __ROM_MCAL_DATA_INIT_START 00000024 00000000* 22 .long __ROM_MCAL_DATA_INIT_END 00000028 00000000* 23 .long __RAM_INTERRUPT_START 0000002c 00000000* 24 .long __ROM_INTERRUPT_START 00000030 00000000* 25 .long __ROM_INTERRUPT_END 26 .section ".zero_table", "a" 00000000 00000001 27 .long 1 00000004 00000000* 28 .long __BSS_SRAM_START 00000008 00000000* 29 .long __BSS_SRAM_END 30 31 .globl __VECTOR_TABLE 32 .section ".startup","ax" 33 .thumb 34 35 .set VTOR_REG, 0xE000ED08 36 .set CPACR_REG, 0xE000ED88 37 .set CPACR_VAL, 0x00F00000 38 39 .align 2 40 .thumb 41 .globl Reset_Handler 42 Reset_Handler: 43 .globl _start 44 _start: 45 46 47 00000000 b672 48 cpsid i 00000002 2000 49 mov r0, #0 Page 2 objs\debug\Startup.si 00000004 2100 50 mov r1, #0 00000006 2200 51 mov r2, #0 00000008 2300 52 mov r3, #0 0000000a 2400 53 mov r4, #0 0000000c 2500 54 mov r5, #0 0000000e 2600 55 mov r6, #0 00000010 2700 56 mov r7, #0 57 58 59 60 61 SetVTOR: 00000012 4801* 62 ldr r0, =VTOR_REG 00000014 4901* 63 ldr r1, =__RAM_INTERRUPT_START 00000016 6001 64 str r1,[r0] 65 66 67 68 69 SetStack: 00000018 4801* 70 ldr r0, =__STACK_TOP 0000001a f3808808 71 msr MSP, r0 0000001e e7ff* 72 b EnableFPU 73 74 75 76 77 EnableFPU: 00000020 4801* 78 ldr r0, =CPACR_REG 00000022 6801 79 ldr r1, [r0] 00000024 220f 80 ldr r2, =CPACR_VAL 00000026 0512 00000028 4311 81 orr r1, r2 0000002a 6001 82 str r1, [r0] 0000002c f3bf8f4f 83 dsb 00000030 f3bf8f6f 84 isb 00000034 e7ff* 85 b InitSram 86 87 88 89 90 InitSram: 00000036 4801* 91 ldr r0, =__SRAM_INIT_FLAG 00000038 2800 92 cmp r0, 0 0000003a d009* 93 beq INIT_SRAM_LOOP_END 0000003c 4901* 94 ldr r1, =__SRAM_START 0000003e 4a01* 95 ldr r2, =__SRAM_END 96 00000040 1a52 97 subs r2, r1 00000042 3a01 98 subs r2, #1 00000044 dd04* 99 ble INIT_SRAM_LOOP_END 100 00000046 2000 101 movs r0, 0 00000048 2300 102 movs r3, 0 103 INIT_SRAM_LOOP: 0000004a c109 104 stm r1!, {r0,r3} 0000004c 3a08 105 subs r2, #8 0000004e dafc* 106 bge INIT_SRAM_LOOP 107 INIT_SRAM_LOOP_END: 00000050 e7ff* 108 b CopyRomToRam 109 Page 3 objs\debug\Startup.si 110 111 112 113 114 115 CopyRomToRam: 00000052 4801* 116 ldr r0, =__SRAM_INIT_FLAG 00000054 2800 117 cmp r0, 0 00000056 d00b* 118 beq COPY_ROM_TO_RAM_END 00000058 4801* 119 ldr r0, =__INIT_TABLE 0000005a c802 120 ldm r0!, {r1} 121 COPY_ROM_TO_RAM_START: 0000005c 3901 122 subs r1, #1 0000005e db07* 123 blt COPY_ROM_TO_RAM_END 00000060 c838 124 ldm r0!, {r3, r4, r5} 00000062 1b2a 125 subs r2, r5, r4 00000064 d0fa* 126 beq COPY_ROM_TO_RAM_START 127 COPY_ROM_TO_RAM_LOOP: 00000066 cc40 128 ldm r4!, {r6} 00000068 c340 129 stm r3!, {r6} 0000006a 3a04 130 subs r2, #4 0000006c dcfb* 131 bgt COPY_ROM_TO_RAM_LOOP 0000006e e7f5* 132 b COPY_ROM_TO_RAM_START 133 COPY_ROM_TO_RAM_END: 00000070 e7ff* 134 b InitBss 135 136 137 138 139 InitBss: 00000072 4801* 140 ldr r0, =__ZERO_TABLE 00000074 c802 141 ldm r0!, {r1} 142 INIT_BSS_DATA_START: 00000076 3901 143 subs r1, #1 00000078 db07* 144 blt INIT_BSS_DATA_END 0000007a c818 145 ldm r0!, {r3, r4} 0000007c 1ae2 146 subs r2, r4, r3 0000007e d0fa* 147 beq INIT_BSS_DATA_START 00000080 2500 148 movs r5, #0 149 INIT_BSS_DATA_LOOP: 00000082 c320 150 stm r3!, {r5} 00000084 3a04 151 subs r2, #4 00000086 dcfc* 152 bgt INIT_BSS_DATA_LOOP 00000088 e7f5* 153 b INIT_BSS_DATA_START 154 INIT_BSS_DATA_END: 155 156 157 158 159 _MAIN: 0000008a b662 160 cpsie i 0000008c f000f800* 161 bl main 162 163 .align 4 00000090 e000ed08 164 .ltorg 00000094 00000000* 00000098 00000000* 0000009c e000ed88 000000a0 00000000* 000000a4 00000000* 000000a8 00000000* Page 4 objs\debug\Startup.si 000000ac 00000000* 000000b0 00000000*