1
- ; STM32L152RC Ultra Low Power High-density Devices vector table for MDK ARM_MICRO toolchain
2
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
- ; Copyright (c) 2014, STMicroelectronics
4
- ; All rights reserved.
1
+ ;******************** (C) COPYRIGHT 2016 STMicroelectronics ********************
2
+ ;* File Name : startup_stm32l152xc.s
3
+ ;* Author : MCD Application Team
4
+ ;* Version : V2.1.3
5
+ ;* Date : 04-March-2016
6
+ ;* Description : STM32L152XC Devices vector for MDK-ARM toolchain.
7
+ ;* This module performs:
8
+ ;* - Set the initial SP
9
+ ;* - Set the initial PC == Reset_Handler
10
+ ;* - Set the vector table entries with the exceptions ISR
11
+ ;* address.
12
+ ;* - Configure the system clock
13
+ ;* - Branches to __main in the C library (which eventually
14
+ ;* calls main()).
15
+ ;* After Reset the Cortex-M3 processor is in Thread mode,
16
+ ;* priority is Privileged, and the Stack is set to Main.
17
+ ;********************************************************************************
18
+ ;*
19
+ ;* COPYRIGHT(c) 2016 STMicroelectronics
20
+ ;*
21
+ ;* Redistribution and use in source and binary forms, with or without modification,
22
+ ;* are permitted provided that the following conditions are met:
23
+ ;* 1. Redistributions of source code must retain the above copyright notice,
24
+ ;* this list of conditions and the following disclaimer.
25
+ ;* 2. Redistributions in binary form must reproduce the above copyright notice,
26
+ ;* this list of conditions and the following disclaimer in the documentation
27
+ ;* and/or other materials provided with the distribution.
28
+ ;* 3. Neither the name of STMicroelectronics nor the names of its contributors
29
+ ;* may be used to endorse or promote products derived from this software
30
+ ;* without specific prior written permission.
31
+ ;*
32
+ ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33
+ ;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
34
+ ;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35
+ ;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
36
+ ;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
37
+ ;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
38
+ ;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39
+ ;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
40
+ ;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
41
+ ;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5
42
;
6
- ; Redistribution and use in source and binary forms, with or without
7
- ; modification, are permitted provided that the following conditions are met:
43
+ ;*******************************************************************************
8
44
;
9
- ; 1. Redistributions of source code must retain the above copyright notice,
10
- ; this list of conditions and the following disclaimer.
11
- ; 2. Redistributions in binary form must reproduce the above copyright notice,
12
- ; this list of conditions and the following disclaimer in the documentation
13
- ; and/or other materials provided with the distribution.
14
- ; 3. Neither the name of STMicroelectronics nor the names of its contributors
15
- ; may be used to endorse or promote products derived from this software
16
- ; without specific prior written permission.
17
- ;
18
- ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
- ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
- ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- ; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
- ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
- ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
- ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
- ; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
- ; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
- ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29
-
30
45
; Amount of memory (in bytes) allocated for Stack
31
46
; Tailor this value to your application needs
32
47
; <h> Stack Configuration
@@ -37,7 +52,7 @@ Stack_Size EQU 0x00000400
37
52
38
53
AREA STACK , NOINIT , READWRITE , ALIGN= 3
39
54
EXPORT __initial_sp
40
-
55
+
41
56
Stack_Mem SPACE Stack_Size
42
57
__initial_sp EQU 0x20008000 ; Top of RAM (32 KB)
43
58
@@ -51,7 +66,7 @@ Heap_Size EQU 0x00000400
51
66
AREA HEAP , NOINIT , READWRITE , ALIGN= 3
52
67
EXPORT __heap_base
53
68
EXPORT __heap_limit
54
-
69
+
55
70
__heap_base
56
71
Heap_Mem SPACE Heap_Size
57
72
__heap_limit EQU (__initial_sp - Stack_Size)
@@ -132,23 +147,23 @@ __Vectors DCD __initial_sp ; Top of Stack
132
147
DCD 0 ; Reserved
133
148
DCD TIM5_IRQHandler ; TIM5
134
149
DCD SPI3_IRQHandler ; SPI3
135
- DCD UART4_IRQHandler ; UART4
136
- DCD UART5_IRQHandler ; UART5
150
+ DCD 0 ; Reserved
151
+ DCD 0 ; Reserved
137
152
DCD DMA2_Channel1_IRQHandler ; DMA2 Channel 1
138
153
DCD DMA2_Channel2_IRQHandler ; DMA2 Channel 2
139
154
DCD DMA2_Channel3_IRQHandler ; DMA2 Channel 3
140
155
DCD DMA2_Channel4_IRQHandler ; DMA2 Channel 4
141
156
DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5
142
157
DCD 0 ; Reserved
143
158
DCD COMP_ACQ_IRQHandler ; Comparator Channel Acquisition
144
-
159
+
145
160
__Vectors_End
146
161
147
162
__Vectors_Size EQU __Vectors_End - __Vectors
148
163
149
164
AREA |.text| , CODE , READONLY
150
165
151
- ; Reset handler
166
+ ; Reset handler routine
152
167
Reset_Handler PROC
153
168
EXPORT Reset_Handler [ WEAK ]
154
169
IMPORT __main
@@ -229,7 +244,6 @@ Default_Handler PROC
229
244
EXPORT DAC_IRQHandler [ WEAK ]
230
245
EXPORT COMP_IRQHandler [ WEAK ]
231
246
EXPORT EXTI9_5_IRQHandler [ WEAK ]
232
- EXPORT LCD_IRQHandler [ WEAK ]
233
247
EXPORT TIM9_IRQHandler [ WEAK ]
234
248
EXPORT TIM10_IRQHandler [ WEAK ]
235
249
EXPORT TIM11_IRQHandler [ WEAK ]
@@ -250,10 +264,8 @@ Default_Handler PROC
250
264
EXPORT USB_FS_WKUP_IRQHandler [ WEAK ]
251
265
EXPORT TIM6_IRQHandler [ WEAK ]
252
266
EXPORT TIM7_IRQHandler [ WEAK ]
253
- EXPORT TIM5_IRQHandler [ WEAK ]
267
+ EXPORT TIM5_IRQHandler [ WEAK ]
254
268
EXPORT SPI3_IRQHandler [ WEAK ]
255
- EXPORT UART4_IRQHandler [ WEAK ]
256
- EXPORT UART5_IRQHandler [ WEAK ]
257
269
EXPORT DMA2_Channel1_IRQHandler [ WEAK ]
258
270
EXPORT DMA2_Channel2_IRQHandler [ WEAK ]
259
271
EXPORT DMA2_Channel3_IRQHandler [ WEAK ]
@@ -308,8 +320,6 @@ TIM6_IRQHandler
308
320
TIM7_IRQHandler
309
321
TIM5_IRQHandler
310
322
SPI3_IRQHandler
311
- UART4_IRQHandler
312
- UART5_IRQHandler
313
323
DMA2_Channel1_IRQHandler
314
324
DMA2_Channel2_IRQHandler
315
325
DMA2_Channel3_IRQHandler
@@ -323,3 +333,5 @@ COMP_ACQ_IRQHandler
323
333
324
334
ALIGN
325
335
END
336
+
337
+ ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
0 commit comments