Statistics
| Branch: | Tag: | Revision:

amiro-blt / Target / Modules / DiWheelDrive_1-1 / Boot / lib / CMSIS / CM3 / DeviceSupport / ST / STM32F10x / startup / iar / startup_stm32f10x_ld.s @ 367c0652

History | View | Annotate | Download (12.4 KB)

1
;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
2
;* File Name          : startup_stm32f10x_ld.s
3
;* Author             : MCD Application Team
4
;* Version            : V3.5.0
5
;* Date               : 11-March-2011
6
;* Description        : STM32F10x Low Density Devices vector table for EWARM
7
;*                      toolchain.
8
;*                      This module performs:
9
;*                      - Set the initial SP
10
;*                      - Configure the clock system
11
;*                      - Set the initial PC == __iar_program_start,
12
;*                      - Set the vector table entries with the exceptions ISR 
13
;*                        address.
14
;*                      After Reset the Cortex-M3 processor is in Thread mode,
15
;*                      priority is Privileged, and the Stack is set to Main.
16
;********************************************************************************
17
;* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
18
;* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
19
;* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
20
;* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
21
;* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
22
;* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
23
;*******************************************************************************
24
;
25
;
26
; The modules in this file are included in the libraries, and may be replaced
27
; by any user-defined modules that define the PUBLIC symbol _program_start or
28
; a user defined start symbol.
29
; To override the cstartup defined in the library, simply add your modified
30
; version to the workbench project.
31
;
32
; The vector table is normally located at address 0.
33
; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
34
; The name "__vector_table" has special meaning for C-SPY:
35
; it is where the SP start value is found, and the NVIC vector
36
; table register (VTOR) is initialized to this address if != 0.
37
;
38
; Cortex-M version
39
;
40

    
41
        MODULE  ?cstartup
42

    
43
        ;; Forward declaration of sections.
44
        SECTION CSTACK:DATA:NOROOT(3)
45

    
46
        SECTION .intvec:CODE:NOROOT(2)
47

    
48
        EXTERN  __iar_program_start
49
        EXTERN  SystemInit        
50
        PUBLIC  __vector_table
51

    
52
        DATA
53
__vector_table
54
        DCD     sfe(CSTACK)
55
        DCD     Reset_Handler             ; Reset Handler
56
        DCD     NMI_Handler               ; NMI Handler
57
        DCD     HardFault_Handler         ; Hard Fault Handler
58
        DCD     MemManage_Handler         ; MPU Fault Handler
59
        DCD     BusFault_Handler          ; Bus Fault Handler
60
        DCD     UsageFault_Handler        ; Usage Fault Handler
61
        DCD     0                         ; Reserved
62
        DCD     0                         ; Reserved
63
        DCD     0                         ; Reserved
64
        DCD     0                         ; Reserved
65
        DCD     SVC_Handler               ; SVCall Handler
66
        DCD     DebugMon_Handler          ; Debug Monitor Handler
67
        DCD     0                         ; Reserved
68
        DCD     PendSV_Handler            ; PendSV Handler
69
        DCD     SysTick_Handler           ; SysTick Handler
70

    
71
         ; External Interrupts
72
        DCD     WWDG_IRQHandler           ; Window Watchdog
73
        DCD     PVD_IRQHandler            ; PVD through EXTI Line detect
74
        DCD     TAMPER_IRQHandler         ; Tamper
75
        DCD     RTC_IRQHandler            ; RTC
76
        DCD     FLASH_IRQHandler          ; Flash
77
        DCD     RCC_IRQHandler            ; RCC
78
        DCD     EXTI0_IRQHandler          ; EXTI Line 0
79
        DCD     EXTI1_IRQHandler          ; EXTI Line 1
80
        DCD     EXTI2_IRQHandler          ; EXTI Line 2
81
        DCD     EXTI3_IRQHandler          ; EXTI Line 3
82
        DCD     EXTI4_IRQHandler          ; EXTI Line 4
83
        DCD     DMA1_Channel1_IRQHandler  ; DMA1 Channel 1
84
        DCD     DMA1_Channel2_IRQHandler  ; DMA1 Channel 2
85
        DCD     DMA1_Channel3_IRQHandler  ; DMA1 Channel 3
86
        DCD     DMA1_Channel4_IRQHandler  ; DMA1 Channel 4
87
        DCD     DMA1_Channel5_IRQHandler  ; DMA1 Channel 5
88
        DCD     DMA1_Channel6_IRQHandler  ; DMA1 Channel 6
89
        DCD     DMA1_Channel7_IRQHandler  ; DMA1 Channel 7
90
        DCD     ADC1_2_IRQHandler         ; ADC1 & ADC2
91
        DCD     USB_HP_CAN1_TX_IRQHandler  ; USB High Priority or CAN1 TX
92
        DCD     USB_LP_CAN1_RX0_IRQHandler ; USB Low  Priority or CAN1 RX0
93
        DCD     CAN1_RX1_IRQHandler       ; CAN1 RX1
94
        DCD     CAN1_SCE_IRQHandler       ; CAN1 SCE
95
        DCD     EXTI9_5_IRQHandler        ; EXTI Line 9..5
96
        DCD     TIM1_BRK_IRQHandler       ; TIM1 Break
97
        DCD     TIM1_UP_IRQHandler        ; TIM1 Update
98
        DCD     TIM1_TRG_COM_IRQHandler   ; TIM1 Trigger and Commutation
99
        DCD     TIM1_CC_IRQHandler        ; TIM1 Capture Compare
100
        DCD     TIM2_IRQHandler           ; TIM2
101
        DCD     TIM3_IRQHandler           ; TIM3
102
        DCD     0                         ; Reserved
103
        DCD     I2C1_EV_IRQHandler        ; I2C1 Event
104
        DCD     I2C1_ER_IRQHandler        ; I2C1 Error
105
        DCD     0                         ; Reserved
106
        DCD     0                         ; Reserved
107
        DCD     SPI1_IRQHandler           ; SPI1
108
        DCD     0                         ; Reserved
109
        DCD     USART1_IRQHandler         ; USART1
110
        DCD     USART2_IRQHandler         ; USART2
111
        DCD     0                         ; Reserved
112
        DCD     EXTI15_10_IRQHandler      ; EXTI Line 15..10
113
        DCD     RTCAlarm_IRQHandler       ; RTC Alarm through EXTI Line
114
        DCD     USBWakeUp_IRQHandler      ; USB Wakeup from suspend
115

    
116
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
117
;;
118
;; Default interrupt handlers.
119
;;
120
        THUMB
121

    
122
        PUBWEAK Reset_Handler
123
        SECTION .text:CODE:REORDER(2)
124
Reset_Handler
125
        LDR     R0, =SystemInit
126
        BLX     R0
127
        LDR     R0, =__iar_program_start
128
        BX      R0
129
        
130
        PUBWEAK NMI_Handler
131
        SECTION .text:CODE:REORDER(1)
132
NMI_Handler
133
        B NMI_Handler
134
        
135
        PUBWEAK HardFault_Handler
136
        SECTION .text:CODE:REORDER(1)
137
HardFault_Handler
138
        B HardFault_Handler
139
        
140
        PUBWEAK MemManage_Handler
141
        SECTION .text:CODE:REORDER(1)
142
MemManage_Handler
143
        B MemManage_Handler
144
        
145
        PUBWEAK BusFault_Handler
146
        SECTION .text:CODE:REORDER(1)
147
BusFault_Handler
148
        B BusFault_Handler
149
        
150
        PUBWEAK UsageFault_Handler
151
        SECTION .text:CODE:REORDER(1)
152
UsageFault_Handler
153
        B UsageFault_Handler
154
        
155
        PUBWEAK SVC_Handler
156
        SECTION .text:CODE:REORDER(1)
157
SVC_Handler
158
        B SVC_Handler
159
        
160
        PUBWEAK DebugMon_Handler
161
        SECTION .text:CODE:REORDER(1)
162
DebugMon_Handler
163
        B DebugMon_Handler
164
        
165
        PUBWEAK PendSV_Handler
166
        SECTION .text:CODE:REORDER(1)
167
PendSV_Handler
168
        B PendSV_Handler
169
        
170
        PUBWEAK SysTick_Handler
171
        SECTION .text:CODE:REORDER(1)
172
SysTick_Handler
173
        B SysTick_Handler
174
        
175
        PUBWEAK WWDG_IRQHandler
176
        SECTION .text:CODE:REORDER(1)
177
WWDG_IRQHandler
178
        B WWDG_IRQHandler
179
        
180
        PUBWEAK PVD_IRQHandler
181
        SECTION .text:CODE:REORDER(1)
182
PVD_IRQHandler
183
        B PVD_IRQHandler
184
        
185
        PUBWEAK TAMPER_IRQHandler
186
        SECTION .text:CODE:REORDER(1)
187
TAMPER_IRQHandler
188
        B TAMPER_IRQHandler
189
        
190
        PUBWEAK RTC_IRQHandler
191
        SECTION .text:CODE:REORDER(1)
192
RTC_IRQHandler
193
        B RTC_IRQHandler
194
        
195
        PUBWEAK FLASH_IRQHandler
196
        SECTION .text:CODE:REORDER(1)
197
FLASH_IRQHandler
198
        B FLASH_IRQHandler
199
        
200
        PUBWEAK RCC_IRQHandler
201
        SECTION .text:CODE:REORDER(1)
202
RCC_IRQHandler
203
        B RCC_IRQHandler
204
        
205
        PUBWEAK EXTI0_IRQHandler
206
        SECTION .text:CODE:REORDER(1)
207
EXTI0_IRQHandler
208
        B EXTI0_IRQHandler
209
        
210
        PUBWEAK EXTI1_IRQHandler
211
        SECTION .text:CODE:REORDER(1)
212
EXTI1_IRQHandler
213
        B EXTI1_IRQHandler
214
        
215
        PUBWEAK EXTI2_IRQHandler
216
        SECTION .text:CODE:REORDER(1)
217
EXTI2_IRQHandler
218
        B EXTI2_IRQHandler
219
        
220
        PUBWEAK EXTI3_IRQHandler
221
        SECTION .text:CODE:REORDER(1)
222
EXTI3_IRQHandler
223
        B EXTI3_IRQHandler
224
        
225
        PUBWEAK EXTI4_IRQHandler
226
        SECTION .text:CODE:REORDER(1)
227
EXTI4_IRQHandler
228
        B EXTI4_IRQHandler
229
        
230
        PUBWEAK DMA1_Channel1_IRQHandler
231
        SECTION .text:CODE:REORDER(1)
232
DMA1_Channel1_IRQHandler
233
        B DMA1_Channel1_IRQHandler
234
        
235
        PUBWEAK DMA1_Channel2_IRQHandler
236
        SECTION .text:CODE:REORDER(1)
237
DMA1_Channel2_IRQHandler
238
        B DMA1_Channel2_IRQHandler
239
        
240
        PUBWEAK DMA1_Channel3_IRQHandler
241
        SECTION .text:CODE:REORDER(1)
242
DMA1_Channel3_IRQHandler
243
        B DMA1_Channel3_IRQHandler
244
        
245
        PUBWEAK DMA1_Channel4_IRQHandler
246
        SECTION .text:CODE:REORDER(1)
247
DMA1_Channel4_IRQHandler
248
        B DMA1_Channel4_IRQHandler
249
        
250
        PUBWEAK DMA1_Channel5_IRQHandler
251
        SECTION .text:CODE:REORDER(1)
252
DMA1_Channel5_IRQHandler
253
        B DMA1_Channel5_IRQHandler
254
        
255
        PUBWEAK DMA1_Channel6_IRQHandler
256
        SECTION .text:CODE:REORDER(1)
257
DMA1_Channel6_IRQHandler
258
        B DMA1_Channel6_IRQHandler
259
        
260
        PUBWEAK DMA1_Channel7_IRQHandler
261
        SECTION .text:CODE:REORDER(1)
262
DMA1_Channel7_IRQHandler
263
        B DMA1_Channel7_IRQHandler
264
        
265
        PUBWEAK ADC1_2_IRQHandler
266
        SECTION .text:CODE:REORDER(1)
267
ADC1_2_IRQHandler
268
        B ADC1_2_IRQHandler
269
        
270
        PUBWEAK USB_HP_CAN1_TX_IRQHandler
271
        SECTION .text:CODE:REORDER(1)
272
USB_HP_CAN1_TX_IRQHandler
273
        B USB_HP_CAN1_TX_IRQHandler
274
        
275
        PUBWEAK USB_LP_CAN1_RX0_IRQHandler
276
        SECTION .text:CODE:REORDER(1)
277
USB_LP_CAN1_RX0_IRQHandler
278
        B USB_LP_CAN1_RX0_IRQHandler
279
        
280
        PUBWEAK CAN1_RX1_IRQHandler
281
        SECTION .text:CODE:REORDER(1)
282
CAN1_RX1_IRQHandler
283
        B CAN1_RX1_IRQHandler
284
        
285
        PUBWEAK CAN1_SCE_IRQHandler
286
        SECTION .text:CODE:REORDER(1)
287
CAN1_SCE_IRQHandler
288
        B CAN1_SCE_IRQHandler
289
        
290
        PUBWEAK EXTI9_5_IRQHandler
291
        SECTION .text:CODE:REORDER(1)
292
EXTI9_5_IRQHandler
293
        B EXTI9_5_IRQHandler
294
        
295
        PUBWEAK TIM1_BRK_IRQHandler
296
        SECTION .text:CODE:REORDER(1)
297
TIM1_BRK_IRQHandler
298
        B TIM1_BRK_IRQHandler
299
        
300
        PUBWEAK TIM1_UP_IRQHandler
301
        SECTION .text:CODE:REORDER(1)
302
TIM1_UP_IRQHandler
303
        B TIM1_UP_IRQHandler
304
        
305
        PUBWEAK TIM1_TRG_COM_IRQHandler
306
        SECTION .text:CODE:REORDER(1)
307
TIM1_TRG_COM_IRQHandler
308
        B TIM1_TRG_COM_IRQHandler
309
        
310
        PUBWEAK TIM1_CC_IRQHandler
311
        SECTION .text:CODE:REORDER(1)
312
TIM1_CC_IRQHandler
313
        B TIM1_CC_IRQHandler
314
        
315
        PUBWEAK TIM2_IRQHandler
316
        SECTION .text:CODE:REORDER(1)
317
TIM2_IRQHandler
318
        B TIM2_IRQHandler
319
        
320
        PUBWEAK TIM3_IRQHandler
321
        SECTION .text:CODE:REORDER(1)
322
TIM3_IRQHandler
323
        B TIM3_IRQHandler
324
        
325
        PUBWEAK I2C1_EV_IRQHandler
326
        SECTION .text:CODE:REORDER(1)
327
I2C1_EV_IRQHandler
328
        B I2C1_EV_IRQHandler
329
        
330
        PUBWEAK I2C1_ER_IRQHandler
331
        SECTION .text:CODE:REORDER(1)
332
I2C1_ER_IRQHandler
333
        B I2C1_ER_IRQHandler
334
        
335
        PUBWEAK SPI1_IRQHandler
336
        SECTION .text:CODE:REORDER(1)
337
SPI1_IRQHandler
338
        B SPI1_IRQHandler
339
                      
340
        PUBWEAK USART1_IRQHandler
341
        SECTION .text:CODE:REORDER(1)
342
USART1_IRQHandler
343
        B USART1_IRQHandler
344

    
345
        PUBWEAK USART2_IRQHandler
346
        SECTION .text:CODE:REORDER(1)
347
USART2_IRQHandler
348
        B USART2_IRQHandler
349

    
350
        PUBWEAK EXTI15_10_IRQHandler
351
        SECTION .text:CODE:REORDER(1)
352
EXTI15_10_IRQHandler
353
        B EXTI15_10_IRQHandler
354

    
355
        PUBWEAK RTCAlarm_IRQHandler
356
        SECTION .text:CODE:REORDER(1)
357
RTCAlarm_IRQHandler
358
        B RTCAlarm_IRQHandler
359

    
360
        PUBWEAK USBWakeUp_IRQHandler
361
        SECTION .text:CODE:REORDER(1)
362
USBWakeUp_IRQHandler
363
        B USBWakeUp_IRQHandler
364

    
365
        END
366
/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/