📄 startup_rvmdk.lst
字号:
ARM Macro Assembler Page 1
1 00000000 ; <<< Use Configuration Wizard in Context Menu >>>
2 00000000 ;*******************************************************
***********************
3 00000000 ;
4 00000000 ; startup_rvmdk.S - Startup code for use with Keil's uVi
sion.
5 00000000 ;
6 00000000 ; Copyright (c) 2009-2011 Texas Instruments Incorporated
. All rights reserved.
7 00000000 ; Software License Agreement
8 00000000 ;
9 00000000 ; Texas Instruments (TI) is supplying this software for
use solely and
10 00000000 ; exclusively on TI's microcontroller products. The soft
ware is owned by
11 00000000 ; TI and/or its suppliers, and is protected under applic
able copyright
12 00000000 ; laws. You may not combine this software with "viral" o
pen-source
13 00000000 ; software in order to form a larger program.
14 00000000 ;
15 00000000 ; THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
16 00000000 ; NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY,
INCLUDING, BUT
17 00000000 ; NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR
18 00000000 ; A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL
NOT, UNDER ANY
19 00000000 ; CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR C
ONSEQUENTIAL
20 00000000 ; DAMAGES, FOR ANY REASON WHATSOEVER.
21 00000000 ;
22 00000000 ; This is part of revision 6852 of the EK-LM3S8962 Firmw
are Package.
23 00000000 ;
24 00000000 ;*******************************************************
***********************
25 00000000
26 00000000 ;*******************************************************
***********************
27 00000000 ;
28 00000000 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
29 00000000 ;
30 00000000 ;*******************************************************
***********************
31 00000000 00000100
Stack EQU 0x00000100
32 00000000
33 00000000 ;*******************************************************
***********************
34 00000000 ;
35 00000000 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
36 00000000 ;
37 00000000 ;*******************************************************
***********************
38 00000000 00000000
Heap EQU 0x00000000
39 00000000
ARM Macro Assembler Page 2
40 00000000 ;*******************************************************
***********************
41 00000000 ;
42 00000000 ; Allocate space for the stack.
43 00000000 ;
44 00000000 ;*******************************************************
***********************
45 00000000 AREA STACK, NOINIT, READWRITE, ALIGN
=3
46 00000000 StackMem
47 00000000 SPACE Stack
48 00000100 __initial_sp
49 00000100
50 00000100 ;*******************************************************
***********************
51 00000100 ;
52 00000100 ; Allocate space for the heap.
53 00000100 ;
54 00000100 ;*******************************************************
***********************
55 00000100 AREA HEAP, NOINIT, READWRITE, ALIGN=
3
56 00000000 __heap_base
57 00000000 HeapMem
58 00000000 SPACE Heap
59 00000000 __heap_limit
60 00000000
61 00000000 ;*******************************************************
***********************
62 00000000 ;
63 00000000 ; Indicate that the code in this file preserves 8-byte a
lignment of the stack.
64 00000000 ;
65 00000000 ;*******************************************************
***********************
66 00000000 PRESERVE8
67 00000000
68 00000000 ;*******************************************************
***********************
69 00000000 ;
70 00000000 ; Place code into the reset code section.
71 00000000 ;
72 00000000 ;*******************************************************
***********************
73 00000000 AREA RESET, CODE, READONLY
74 00000000 THUMB
75 00000000
76 00000000 ;*******************************************************
***********************
77 00000000 ;
78 00000000 ; External declaration for the interrupt handler used by
the application.
79 00000000 ;
80 00000000 ;*******************************************************
***********************
81 00000000 EXTERN CANIntHandler
82 00000000
83 00000000 ;*******************************************************
***********************
ARM Macro Assembler Page 3
84 00000000 ;
85 00000000 ; The vector table.
86 00000000 ;
87 00000000 ;*******************************************************
***********************
88 00000000 EXPORT __Vectors
89 00000000 __Vectors
90 00000000 00000100 DCD StackMem + Stack ; Top of Stack
91 00000004 00000000 DCD Reset_Handler ; Reset Handler
92 00000008 00000000 DCD NmiSR ; NMI Handler
93 0000000C 00000000 DCD FaultISR ; Hard Fault Handle
r
94 00000010 00000000 DCD IntDefaultHandler ; The MPU fau
lt handler
95 00000014 00000000 DCD IntDefaultHandler ; The bus fau
lt handler
96 00000018 00000000 DCD IntDefaultHandler ; The usage f
ault handler
97 0000001C 00000000 DCD 0 ; Reserved
98 00000020 00000000 DCD 0 ; Reserved
99 00000024 00000000 DCD 0 ; Reserved
100 00000028 00000000 DCD 0 ; Reserved
101 0000002C 00000000 DCD IntDefaultHandler
; SVCall handler
102 00000030 00000000 DCD IntDefaultHandler ; Debug monit
or handler
103 00000034 00000000 DCD 0 ; Reserved
104 00000038 00000000 DCD IntDefaultHandler ; The PendSV
handler
105 0000003C 00000000 DCD IntDefaultHandler ; The SysTick
handler
106 00000040 00000000 DCD IntDefaultHandler ; GPIO Port A
107 00000044 00000000 DCD IntDefaultHandler ; GPIO Port B
108 00000048 00000000 DCD IntDefaultHandler ; GPIO Port C
109 0000004C 00000000 DCD IntDefaultHandler ; GPIO Port D
110 00000050 00000000 DCD IntDefaultHandler ; GPIO Port E
111 00000054 00000000 DCD IntDefaultHandler
; UART0 Rx and Tx
112 00000058 00000000 DCD IntDefaultHandler
; UART1 Rx and Tx
113 0000005C 00000000 DCD IntDefaultHandler
; SSI0 Rx and Tx
114 00000060 00000000 DCD IntDefaultHandler ; I2C0 Master
and Slave
115 00000064 00000000 DCD IntDefaultHandler ; PWM Fault
116 00000068 00000000 DCD IntDefaultHandler
; PWM Generator 0
117 0000006C 00000000 DCD IntDefaultHandler
; PWM Generator 1
118 00000070 00000000 DCD IntDefaultHandler
; PWM Generator 2
119 00000074 00000000 DCD IntDefaultHandler ; Quadrature
Encoder 0
ARM Macro Assembler Page 4
120 00000078 00000000 DCD IntDefaultHandler
; ADC Sequence 0
121 0000007C 00000000 DCD IntDefaultHandler
; ADC Sequence 1
122 00000080 00000000 DCD IntDefaultHandler
; ADC Sequence 2
123 00000084 00000000 DCD IntDefaultHandler
; ADC Sequence 3
124 00000088 00000000 DCD IntDefaultHandler
; Watchdog timer
125 0000008C 00000000 DCD IntDefaultHandler ; Timer 0 sub
timer A
126 00000090 00000000 DCD IntDefaultHandler ; Timer 0 sub
timer B
127 00000094 00000000 DCD IntDefaultHandler ; Timer 1 sub
timer A
128 00000098 00000000 DCD IntDefaultHandler ; Timer 1 sub
timer B
129 0000009C 00000000 DCD IntDefaultHandler ; Timer 2 sub
timer A
130 000000A0 00000000 DCD IntDefaultHandler ; Timer 2 sub
timer B
131 000000A4 00000000 DCD IntDefaultHandler ; Analog Comp
arator 0
132 000000A8 00000000 DCD IntDefaultHandler ; Analog Comp
arator 1
133 000000AC 00000000 DCD IntDefaultHandler ; Analog Comp
arator 2
134 000000B0 00000000 DCD IntDefaultHandler ; System Cont
rol (PLL, OSC, BO)
135 000000B4 00000000 DCD IntDefaultHandler
; FLASH Control
136 000000B8 00000000 DCD IntDefaultHandler ; GPIO Port F
137 000000BC 00000000 DCD IntDefaultHandler ; GPIO Port G
138 000000C0 00000000 DCD IntDefaultHandler ; GPIO Port H
139 000000C4 00000000 DCD IntDefaultHandler
; UART2 Rx and Tx
140 000000C8 00000000 DCD IntDefaultHandler
; SSI1 Rx and Tx
141 000000CC 00000000 DCD IntDefaultHandler ; Timer 3 sub
timer A
142 000000D0 00000000 DCD IntDefaultHandler ; Timer 3 sub
timer B
143 000000D4 00000000 DCD IntDefaultHandler ; I2C1 Master
and Slave
144 000000D8 00000000 DCD IntDefaultHandler ; Quadrature
Encoder 1
145 000000DC 00000000 DCD CANIntHandler ; CAN0
146 000000E0 00000000 DCD IntDefaultHandler ; CAN1
147 000000E4 00000000 DCD IntDefaultHandler ; CAN2
148 000000E8 00000000 DCD IntDefaultHandler ; Ethernet
149 000000EC 00000000 DCD IntDefaultHandler ; Hibernate
150 000000F0
151 000000F0 ;*******************************************************
***********************
152 000000F0 ;
ARM Macro Assembler Page 5
153 000000F0 ; This is the code that gets called when the processor f
irst starts execution
154 000000F0 ; following a reset event.
155 000000F0 ;
156 000000F0 ;*******************************************************
***********************
157 000000F0 EXPORT Reset_Handler
158 000000F0 Reset_Handler
159 000000F0 ;
160 000000F0 ; Call the C library enty point that handles startup. T
his will copy
161 000000F0 ; the .data section initializers from flash to SRAM and
zero fill the
162 000000F0 ; .bss section.
163 000000F0 ;
164 000000F0 IMPORT __main
165 000000F0 F7FF BFFE B __main
166 000000F4
167 000000F4 ;*******************************************************
***********************
168 000000F4 ;
169 000000F4 ; This is the code that gets called when the processor r
eceives a NMI. This
170 000000F4 ; simply enters an infinite loop, preserving the system
state for examination
171 000000F4 ; by a debugger.
172 000000F4 ;
173 000000F4 ;*******************************************************
***********************
174 000000F4 NmiSR
175 000000F4 E7FE B NmiSR
176 000000F6
177 000000F6 ;*******************************************************
***********************
178 000000F6 ;
179 000000F6 ; This is the code that gets called when the processor r
eceives a fault
180 000000F6 ; interrupt. This simply enters an infinite loop, prese
rving the system state
181 000000F6 ; for examination by a debugger.
182 000000F6 ;
183 000000F6 ;*******************************************************
***********************
184 000000F6 FaultISR
185 000000F6 E7FE B FaultISR
186 000000F8
187 000000F8 ;*******************************************************
***********************
188 000000F8 ;
189 000000F8 ; This is the code that gets called when the processor r
eceives an unexpected
190 000000F8 ; interrupt. This simply enters an infinite loop, prese
rving the system state
191 000000F8 ; for examination by a debugger.
192 000000F8 ;
193 000000F8 ;*******************************************************
***********************
194 000000F8 IntDefaultHandler
195 000000F8 E7FE B IntDefaultHandler
ARM Macro Assembler Page 6
196 000000FA
197 000000FA ;*******************************************************
***********************
198 000000FA ;
199 000000FA ; Make sure the end of this section is aligned.
200 000000FA ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -