Subversion Repositories ScreenTimer

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
;*******************************************************************************
2
;* File Name          : startup_stm32f051x8.s
3
;* Author             : MCD Application Team
4
;* Description        : STM32F051x4/STM32F051x6/STM32F051x8 devices vector table 
5
;*                      for EWARM toolchain.
6
;*                      This module performs:
7
;*                      - Set the initial SP
8
;*                      - Set the initial PC == __iar_program_start,
9
;*                      - Set the vector table entries with the exceptions ISR 
10
;*                        address,
11
;*                      - Branches to main in the C library (which eventually
12
;*                        calls main()).
13
;*                      After Reset the Cortex-M0 processor is in Thread mode,
14
;*                      priority is Privileged, and the Stack is set to Main.
15
;*******************************************************************************
16
;* @attention
17
;*
18
;* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
19
;* All rights reserved.</center></h2>
20
;*
21
;* This software component is licensed by ST under BSD 3-Clause license,
22
;* the "License"; You may not use this file except in compliance with the
23
;* License. You may obtain a copy of the License at:
24
;*                        opensource.org/licenses/BSD-3-Clause
25
;*
26
;*******************************************************************************
27
;
28
;
29
; The modules in this file are included in the libraries, and may be replaced
30
; by any user-defined modules that define the PUBLIC symbol _program_start or
31
; a user defined start symbol.
32
; To override the cstartup defined in the library, simply add your modified
33
; version to the workbench project.
34
;
35
; The vector table is normally located at address 0.
36
; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
37
; The name "__vector_table" has special meaning for C-SPY:
38
; it is where the SP start value is found, and the NVIC vector
39
; table register (VTOR) is initialized to this address if != 0.
40
;
41
; Cortex-M version
42
;
43
 
44
        MODULE  ?cstartup
45
 
46
        ;; Forward declaration of sections.
47
        SECTION CSTACK:DATA:NOROOT(3)
48
 
49
        SECTION .intvec:CODE:NOROOT(2)
50
 
51
        EXTERN  __iar_program_start
52
        EXTERN  SystemInit
53
        PUBLIC  __vector_table
54
 
55
        DATA
56
__vector_table
57
        DCD     sfe(CSTACK)
58
        DCD     Reset_Handler                  ; Reset Handler
59
 
60
        DCD     NMI_Handler                    ; NMI Handler
61
        DCD     HardFault_Handler              ; Hard Fault Handler
62
        DCD     0                              ; Reserved
63
        DCD     0                              ; Reserved
64
        DCD     0                              ; Reserved
65
        DCD     0                              ; Reserved
66
        DCD     0                              ; Reserved
67
        DCD     0                              ; Reserved
68
        DCD     0                              ; Reserved
69
        DCD     SVC_Handler                    ; SVCall Handler
70
        DCD     0                              ; Reserved
71
        DCD     0                              ; Reserved
72
        DCD     PendSV_Handler                 ; PendSV Handler
73
        DCD     SysTick_Handler                ; SysTick Handler
74
 
75
        ; External Interrupts
76
        DCD     WWDG_IRQHandler                ; Window Watchdog
77
        DCD     PVD_IRQHandler                 ; PVD through EXTI Line detect
78
        DCD     RTC_IRQHandler                 ; RTC through EXTI Line
79
        DCD     FLASH_IRQHandler               ; FLASH
80
        DCD     RCC_CRS_IRQHandler             ; RCC and CRS
81
        DCD     EXTI0_1_IRQHandler             ; EXTI Line 0 and 1
82
        DCD     EXTI2_3_IRQHandler             ; EXTI Line 2 and 3
83
        DCD     EXTI4_15_IRQHandler            ; EXTI Line 4 to 15
84
        DCD     TSC_IRQHandler                 ; TSC
85
        DCD     DMA1_Channel1_IRQHandler       ; DMA1 Channel 1
86
        DCD     DMA1_Channel2_3_IRQHandler     ; DMA1 Channel 2 and Channel 3
87
        DCD     DMA1_Channel4_5_IRQHandler     ; DMA1 Channel 4 and Channel 5
88
        DCD     ADC1_COMP_IRQHandler           ; ADC1, COMP1 and COMP2 
89
        DCD     TIM1_BRK_UP_TRG_COM_IRQHandler ; TIM1 Break, Update, Trigger and Commutation
90
        DCD     TIM1_CC_IRQHandler             ; TIM1 Capture Compare
91
        DCD     TIM2_IRQHandler                ; TIM2
92
        DCD     TIM3_IRQHandler                ; TIM3
93
        DCD     TIM6_DAC_IRQHandler            ; TIM6 and DAC
94
        DCD     0                              ; Reserved
95
        DCD     TIM14_IRQHandler               ; TIM14
96
        DCD     TIM15_IRQHandler               ; TIM15
97
        DCD     TIM16_IRQHandler               ; TIM16
98
        DCD     TIM17_IRQHandler               ; TIM17
99
        DCD     I2C1_IRQHandler                ; I2C1
100
        DCD     I2C2_IRQHandler                ; I2C2
101
        DCD     SPI1_IRQHandler                ; SPI1
102
        DCD     SPI2_IRQHandler                ; SPI2
103
        DCD     USART1_IRQHandler              ; USART1
104
        DCD     USART2_IRQHandler              ; USART2
105
        DCD     0                              ; Reserved
106
        DCD     CEC_CAN_IRQHandler             ; CEC and CAN
107
 
108
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
109
;;
110
;; Default interrupt handlers.
111
;;
112
        THUMB
113
 
114
        PUBWEAK Reset_Handler
115
        SECTION .text:CODE:NOROOT:REORDER(2)
116
Reset_Handler
117
        LDR     R0, =SystemInit
118
        BLX     R0
119
        LDR     R0, =__iar_program_start
120
        BX      R0
121
 
122
        PUBWEAK NMI_Handler
123
        SECTION .text:CODE:NOROOT:REORDER(1)
124
NMI_Handler
125
        B NMI_Handler
126
 
127
        PUBWEAK HardFault_Handler
128
        SECTION .text:CODE:NOROOT:REORDER(1)
129
HardFault_Handler
130
        B HardFault_Handler
131
 
132
        PUBWEAK SVC_Handler
133
        SECTION .text:CODE:NOROOT:REORDER(1)
134
SVC_Handler
135
        B SVC_Handler
136
 
137
        PUBWEAK PendSV_Handler
138
        SECTION .text:CODE:NOROOT:REORDER(1)
139
PendSV_Handler
140
        B PendSV_Handler
141
 
142
        PUBWEAK SysTick_Handler
143
        SECTION .text:CODE:NOROOT:REORDER(1)
144
SysTick_Handler
145
        B SysTick_Handler
146
 
147
        PUBWEAK WWDG_IRQHandler
148
        SECTION .text:CODE:NOROOT:REORDER(1)
149
WWDG_IRQHandler
150
        B WWDG_IRQHandler
151
 
152
        PUBWEAK PVD_IRQHandler
153
        SECTION .text:CODE:NOROOT:REORDER(1)
154
PVD_IRQHandler
155
        B PVD_IRQHandler
156
 
157
        PUBWEAK RTC_IRQHandler
158
        SECTION .text:CODE:NOROOT:REORDER(1)
159
RTC_IRQHandler
160
        B RTC_IRQHandler
161
 
162
        PUBWEAK FLASH_IRQHandler
163
        SECTION .text:CODE:NOROOT:REORDER(1)
164
FLASH_IRQHandler
165
        B FLASH_IRQHandler
166
 
167
        PUBWEAK RCC_CRS_IRQHandler
168
        SECTION .text:CODE:NOROOT:REORDER(1)
169
RCC_CRS_IRQHandler
170
        B RCC_CRS_IRQHandler
171
 
172
        PUBWEAK EXTI0_1_IRQHandler
173
        SECTION .text:CODE:NOROOT:REORDER(1)
174
EXTI0_1_IRQHandler
175
        B EXTI0_1_IRQHandler
176
 
177
        PUBWEAK EXTI2_3_IRQHandler
178
        SECTION .text:CODE:NOROOT:REORDER(1)
179
EXTI2_3_IRQHandler
180
        B EXTI2_3_IRQHandler
181
 
182
        PUBWEAK EXTI4_15_IRQHandler
183
        SECTION .text:CODE:NOROOT:REORDER(1)
184
EXTI4_15_IRQHandler
185
        B EXTI4_15_IRQHandler
186
 
187
        PUBWEAK TSC_IRQHandler
188
        SECTION .text:CODE:NOROOT:REORDER(1)
189
TSC_IRQHandler
190
        B TSC_IRQHandler
191
 
192
        PUBWEAK DMA1_Channel1_IRQHandler
193
        SECTION .text:CODE:NOROOT:REORDER(1)
194
DMA1_Channel1_IRQHandler
195
        B DMA1_Channel1_IRQHandler
196
 
197
        PUBWEAK DMA1_Channel2_3_IRQHandler
198
        SECTION .text:CODE:NOROOT:REORDER(1)
199
DMA1_Channel2_3_IRQHandler
200
        B DMA1_Channel2_3_IRQHandler
201
 
202
        PUBWEAK DMA1_Channel4_5_IRQHandler
203
        SECTION .text:CODE:NOROOT:REORDER(1)
204
DMA1_Channel4_5_IRQHandler
205
        B DMA1_Channel4_5_IRQHandler
206
 
207
        PUBWEAK ADC1_COMP_IRQHandler
208
        SECTION .text:CODE:NOROOT:REORDER(1)
209
ADC1_COMP_IRQHandler
210
        B ADC1_COMP_IRQHandler
211
 
212
        PUBWEAK TIM1_BRK_UP_TRG_COM_IRQHandler
213
        SECTION .text:CODE:NOROOT:REORDER(1)
214
TIM1_BRK_UP_TRG_COM_IRQHandler
215
        B TIM1_BRK_UP_TRG_COM_IRQHandler
216
 
217
        PUBWEAK TIM1_CC_IRQHandler
218
        SECTION .text:CODE:NOROOT:REORDER(1)
219
TIM1_CC_IRQHandler
220
        B TIM1_CC_IRQHandler
221
 
222
        PUBWEAK TIM2_IRQHandler
223
        SECTION .text:CODE:NOROOT:REORDER(1)
224
TIM2_IRQHandler
225
        B TIM2_IRQHandler
226
 
227
        PUBWEAK TIM3_IRQHandler
228
        SECTION .text:CODE:NOROOT:REORDER(1)
229
TIM3_IRQHandler
230
        B TIM3_IRQHandler
231
 
232
        PUBWEAK TIM6_DAC_IRQHandler
233
        SECTION .text:CODE:NOROOT:REORDER(1)
234
TIM6_DAC_IRQHandler
235
        B TIM6_DAC_IRQHandler
236
 
237
        PUBWEAK TIM14_IRQHandler
238
        SECTION .text:CODE:NOROOT:REORDER(1)
239
TIM14_IRQHandler
240
        B TIM14_IRQHandler
241
 
242
        PUBWEAK TIM15_IRQHandler
243
        SECTION .text:CODE:NOROOT:REORDER(1)
244
TIM15_IRQHandler
245
        B TIM15_IRQHandler
246
 
247
        PUBWEAK TIM16_IRQHandler
248
        SECTION .text:CODE:NOROOT:REORDER(1)
249
TIM16_IRQHandler
250
        B TIM16_IRQHandler
251
 
252
        PUBWEAK TIM17_IRQHandler
253
        SECTION .text:CODE:NOROOT:REORDER(1)
254
TIM17_IRQHandler
255
        B TIM17_IRQHandler
256
 
257
        PUBWEAK I2C1_IRQHandler
258
        SECTION .text:CODE:NOROOT:REORDER(1)
259
I2C1_IRQHandler
260
        B I2C1_IRQHandler
261
 
262
        PUBWEAK I2C2_IRQHandler
263
        SECTION .text:CODE:NOROOT:REORDER(1)
264
I2C2_IRQHandler
265
        B I2C2_IRQHandler
266
 
267
        PUBWEAK SPI1_IRQHandler
268
        SECTION .text:CODE:NOROOT:REORDER(1)
269
SPI1_IRQHandler
270
        B SPI1_IRQHandler
271
 
272
        PUBWEAK SPI2_IRQHandler
273
        SECTION .text:CODE:NOROOT:REORDER(1)
274
SPI2_IRQHandler
275
        B SPI2_IRQHandler
276
 
277
        PUBWEAK USART1_IRQHandler
278
        SECTION .text:CODE:NOROOT:REORDER(1)
279
USART1_IRQHandler
280
        B USART1_IRQHandler
281
 
282
        PUBWEAK USART2_IRQHandler
283
        SECTION .text:CODE:NOROOT:REORDER(1)
284
USART2_IRQHandler
285
        B USART2_IRQHandler
286
 
287
        PUBWEAK CEC_CAN_IRQHandler
288
        SECTION .text:CODE:NOROOT:REORDER(1)
289
CEC_CAN_IRQHandler
290
        B CEC_CAN_IRQHandler
291
 
292
        END
293
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****