ARM Macro Assembler Page 1
1 00000000 ;*******************************************************
************************
2 00000000 ;* File Name : startup_stm32f030x6.s
3 00000000 ;* Author : MCD Application Team
4 00000000 ;* Description : STM32F030x4/STM32F030x6 devices
vector table for MDK-ARM toolchain.
5 00000000 ;* This module performs:
6 00000000 ;* - Set the initial SP
7 00000000 ;* - Set the initial PC == Reset_Ha
ndler
8 00000000 ;* - Set the vector table entries w
ith the exceptions ISR address
9 00000000 ;* - Branches to __main in the C li
brary (which eventually
10 00000000 ;* calls main()).
11 00000000 ;* After Reset the CortexM0 process
or is in Thread mode,
12 00000000 ;* priority is Privileged, and the
Stack is set to Main.
13 00000000 ;*******************************************************
************************
14 00000000 ;* @attention
15 00000000 ;*
16 00000000 ;* Copyright (c) 2016 STMicroelectronics.
17 00000000 ;* All rights reserved.
18 00000000 ;*
19 00000000 ;* This software is licensed under terms that can be fou
nd in the LICENSE file
20 00000000 ;* in the root directory of this software component.
21 00000000 ;* If no LICENSE file comes with this software, it is pr
ovided AS-IS.
22 00000000 ;*
23 00000000 ;*******************************************************
************************
24 00000000 ;* <<< Use Configuration Wizard in Context Menu >>>
25 00000000 ;
26 00000000
27 00000000 ; Amount of memory (in bytes) allocated for Stack
28 00000000 ; Tailor this value to your application needs
29 00000000 ; Stack Configuration
30 00000000 ; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
31 00000000 ;
32 00000000
33 00000000 00000400
Stack_Size
EQU 0x400
34 00000000
35 00000000 AREA STACK, NOINIT, READWRITE, ALIGN
=3
36 00000000 Stack_Mem
SPACE Stack_Size
37 00000400 __initial_sp
38 00000400
39 00000400
40 00000400 ; Heap Configuration
41 00000400 ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
42 00000400 ;
43 00000400
44 00000400 00000200
ARM Macro Assembler Page 2
Heap_Size
EQU 0x200
45 00000400
46 00000400 AREA HEAP, NOINIT, READWRITE, ALIGN=
3
47 00000000 __heap_base
48 00000000 Heap_Mem
SPACE Heap_Size
49 00000200 __heap_limit
50 00000200
51 00000200 PRESERVE8
52 00000200 THUMB
53 00000200
54 00000200
55 00000200 ; Vector Table Mapped to Address 0 at Reset
56 00000200 AREA RESET, DATA, READONLY
57 00000000 EXPORT __Vectors
58 00000000 EXPORT __Vectors_End
59 00000000 EXPORT __Vectors_Size
60 00000000
61 00000000 00000000
__Vectors
DCD __initial_sp ; Top of Stack
62 00000004 00000000 DCD Reset_Handler ; Reset Handler
63 00000008 00000000 DCD NMI_Handler ; NMI Handler
64 0000000C 00000000 DCD HardFault_Handler ; Hard Fault
Handler
65 00000010 00000000 DCD 0 ; Reserved
66 00000014 00000000 DCD 0 ; Reserved
67 00000018 00000000 DCD 0 ; Reserved
68 0000001C 00000000 DCD 0 ; Reserved
69 00000020 00000000 DCD 0 ; Reserved
70 00000024 00000000 DCD 0 ; Reserved
71 00000028 00000000 DCD 0 ; Reserved
72 0000002C 00000000 DCD SVC_Handler ; SVCall Handler
73 00000030 00000000 DCD 0 ; Reserved
74 00000034 00000000 DCD 0 ; Reserved
75 00000038 00000000 DCD PendSV_Handler ; PendSV Handler
76 0000003C 00000000 DCD SysTick_Handler
; SysTick Handler
77 00000040
78 00000040 ; External Interrupts
79 00000040 00000000 DCD WWDG_IRQHandler
; Window Watchdog
80 00000044 00000000 DCD 0 ; Reserved
81 00000048 00000000 DCD RTC_IRQHandler ; RTC through EX
TI Line
82 0000004C 00000000 DCD FLASH_IRQHandler ; FLASH
83 00000050 00000000 DCD RCC_IRQHandler ; RCC
84 00000054 00000000 DCD EXTI0_1_IRQHandler
; EXTI Line 0 and 1
85 00000058 00000000 DCD EXTI2_3_IRQHandler
; EXTI Line 2 and 3
86 0000005C 00000000 DCD EXTI4_15_IRQHandler
; EXTI Line 4 to 15
ARM Macro Assembler Page 3
87 00000060 00000000 DCD 0 ; Reserved
88 00000064 00000000 DCD DMA1_Channel1_IRQHandler
; DMA1 Channel 1
89 00000068 00000000 DCD DMA1_Channel2_3_IRQHandler ; DM
A1 Channel 2 and Ch
annel 3
90 0000006C 00000000 DCD DMA1_Channel4_5_IRQHandler ; DM
A1 Channel 4 and Ch
annel 5
91 00000070 00000000 DCD ADC1_IRQHandler ; ADC1
92 00000074 00000000 DCD TIM1_BRK_UP_TRG_COM_IRQHandler
; TIM1 Break, Updat
e, Trigger and Comm
utation
93 00000078 00000000 DCD TIM1_CC_IRQHandler ; TIM1 Captu
re Compare
94 0000007C 00000000 DCD 0 ; Reserved
95 00000080 00000000 DCD TIM3_IRQHandler ; TIM3
96 00000084 00000000 DCD 0 ; Reserved
97 00000088 00000000 DCD 0 ; Reserved
98 0000008C 00000000 DCD TIM14_IRQHandler ; TIM14
99 00000090 00000000 DCD 0 ; Reserved
100 00000094 00000000 DCD TIM16_IRQHandler ; TIM16
101 00000098 00000000 DCD TIM17_IRQHandler ; TIM17
102 0000009C 00000000 DCD I2C1_IRQHandler ; I2C1
103 000000A0 00000000 DCD 0 ; Reserved
104 000000A4 00000000 DCD SPI1_IRQHandler ; SPI1
105 000000A8 00000000 DCD 0 ; Reserved
106 000000AC 00000000 DCD USART1_IRQHandler ; USART1
107 000000B0
108 000000B0
109 000000B0 __Vectors_End
110 000000B0
111 000000B0 000000B0
__Vectors_Size
EQU __Vectors_End - __Vectors
112 000000B0
113 000000B0 AREA |.text|, CODE, READONLY
114 00000000
115 00000000 ; Reset handler routine
116 00000000 Reset_Handler
PROC
117 00000000 EXPORT Reset_Handler [
WEAK]
118 00000000 IMPORT __main
119 00000000 IMPORT SystemInit
120 00000000 4807 LDR R0, =SystemInit
121 00000002 4780 BLX R0
122 00000004 4807 LDR R0, =__main
123 00000006 4700 BX R0
124 00000008 ENDP
125 00000008
126 00000008 ; Dummy Exception Handlers (infinite loops which can be
modified)
127 00000008
128 00000008 NMI_Handler
PROC
129 00000008 EXPORT NMI_Handler
[WEAK]
ARM Macro Assembler Page 4
130 00000008 E7FE B .
131 0000000A ENDP
133 0000000A HardFault_Handler
PROC
134 0000000A EXPORT HardFault_Handler
[WEAK]
135 0000000A E7FE B .
136 0000000C ENDP
137 0000000C SVC_Handler
PROC
138 0000000C EXPORT SVC_Handler
[WEAK]
139 0000000C E7FE B .
140 0000000E ENDP
141 0000000E PendSV_Handler
PROC
142 0000000E EXPORT PendSV_Handler
[WEAK]
143 0000000E E7FE B .
144 00000010 ENDP
145 00000010 SysTick_Handler
PROC
146 00000010 EXPORT SysTick_Handler
[WEAK]
147 00000010 E7FE B .
148 00000012 ENDP
149 00000012
150 00000012 Default_Handler
PROC
151 00000012
152 00000012 EXPORT WWDG_IRQHandler
[WEAK]
153 00000012 EXPORT RTC_IRQHandler
[WEAK]
154 00000012 EXPORT FLASH_IRQHandler
[WEAK]
155 00000012 EXPORT RCC_IRQHandler
[WEAK]
156 00000012 EXPORT EXTI0_1_IRQHandler
[WEAK]
157 00000012 EXPORT EXTI2_3_IRQHandler
[WEAK]
158 00000012 EXPORT EXTI4_15_IRQHandler
[WEAK]
159 00000012 EXPORT DMA1_Channel1_IRQHandler
[WEAK]
160 00000012 EXPORT DMA1_Channel2_3_IRQHandler
[WEAK]
161 00000012 EXPORT DMA1_Channel4_5_IRQHandler
[WEAK]
162 00000012 EXPORT ADC1_IRQHandler
[WEAK]
163 00000012 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler
[WEAK]
164 00000012 EXPORT TIM1_CC_IRQHandler
[WEAK]
165 00000012 EXPORT TIM3_IRQHandler
[WEAK]
166 00000012 EXPORT TIM14_IRQHandler
ARM Macro Assembler Page 5
[WEAK]
167 00000012 EXPORT TIM16_IRQHandler
[WEAK]
168 00000012 EXPORT TIM17_IRQHandler
[WEAK]
169 00000012 EXPORT I2C1_IRQHandler
[WEAK]
170 00000012 EXPORT SPI1_IRQHandler
[WEAK]
171 00000012 EXPORT USART1_IRQHandler
[WEAK]
172 00000012
173 00000012
174 00000012 WWDG_IRQHandler
175 00000012 RTC_IRQHandler
176 00000012 FLASH_IRQHandler
177 00000012 RCC_IRQHandler
178 00000012 EXTI0_1_IRQHandler
179 00000012 EXTI2_3_IRQHandler
180 00000012 EXTI4_15_IRQHandler
181 00000012 DMA1_Channel1_IRQHandler
182 00000012 DMA1_Channel2_3_IRQHandler
183 00000012 DMA1_Channel4_5_IRQHandler
184 00000012 ADC1_IRQHandler
185 00000012 TIM1_BRK_UP_TRG_COM_IRQHandler
186 00000012 TIM1_CC_IRQHandler
187 00000012 TIM3_IRQHandler
188 00000012 TIM14_IRQHandler
189 00000012 TIM16_IRQHandler
190 00000012 TIM17_IRQHandler
191 00000012 I2C1_IRQHandler
192 00000012 SPI1_IRQHandler
193 00000012 USART1_IRQHandler
194 00000012
195 00000012 E7FE B .
196 00000014
197 00000014 ENDP
198 00000014
199 00000014 ALIGN
200 00000014
201 00000014 ;*******************************************************
************************
202 00000014 ; User Stack and Heap initialization
203 00000014 ;*******************************************************
************************
204 00000014 IF :DEF:__MICROLIB
211 00000014
212 00000014 IMPORT __use_two_region_memory
213 00000014 EXPORT __user_initial_stackheap
214 00000014
215 00000014 __user_initial_stackheap
216 00000014
217 00000014 4804 LDR R0, = Heap_Mem
218 00000016 4905 LDR R1, =(Stack_Mem + Stack_Size)
219 00000018 4A05 LDR R2, = (Heap_Mem + Heap_Size)
220 0000001A 4B06 LDR R3, = Stack_Mem
221 0000001C 4770 BX LR
222 0000001E
223 0000001E 00 00 ALIGN
ARM Macro Assembler Page 6
224 00000020
225 00000020 ENDIF
226 00000020
227 00000020 END
00000000
00000000
00000000
00000400
00000200
00000000
Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --apcs=interw
ork --depend=adc_voltage\startup_stm32f030x6.d -oadc_voltage\startup_stm32f030x
6.o -I.\RTE\_adc_voltage -ID:\Keil_v5\pack\ARM\CMSIS\5.8.0\CMSIS\Core\Include -
ID:\Keil_v5\pack\Keil\STM32F0xx_DFP\2.1.1\Drivers\CMSIS\Device\ST\STM32F0xx\Inc
lude --predefine="__UVISION_VERSION SETA 536" --predefine="_RTE_ SETA 1" --pred
efine="STM32F030x6 SETA 1" --predefine="_RTE_ SETA 1" --list=startup_stm32f030x
6.lst startup_stm32f030x6.s
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
STACK 00000000
Symbol: STACK
Definitions
At line 35 in file startup_stm32f030x6.s
Uses
None
Comment: STACK unused
Stack_Mem 00000000
Symbol: Stack_Mem
Definitions
At line 36 in file startup_stm32f030x6.s
Uses
At line 218 in file startup_stm32f030x6.s
At line 220 in file startup_stm32f030x6.s
__initial_sp 00000400
Symbol: __initial_sp
Definitions
At line 37 in file startup_stm32f030x6.s
Uses
At line 61 in file startup_stm32f030x6.s
Comment: __initial_sp used once
3 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
HEAP 00000000
Symbol: HEAP
Definitions
At line 46 in file startup_stm32f030x6.s
Uses
None
Comment: HEAP unused
Heap_Mem 00000000
Symbol: Heap_Mem
Definitions
At line 48 in file startup_stm32f030x6.s
Uses
At line 217 in file startup_stm32f030x6.s
At line 219 in file startup_stm32f030x6.s
__heap_base 00000000
Symbol: __heap_base
Definitions
At line 47 in file startup_stm32f030x6.s
Uses
None
Comment: __heap_base unused
__heap_limit 00000200
Symbol: __heap_limit
Definitions
At line 49 in file startup_stm32f030x6.s
Uses
None
Comment: __heap_limit unused
4 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
RESET 00000000
Symbol: RESET
Definitions
At line 56 in file startup_stm32f030x6.s
Uses
None
Comment: RESET unused
__Vectors 00000000
Symbol: __Vectors
Definitions
At line 61 in file startup_stm32f030x6.s
Uses
At line 57 in file startup_stm32f030x6.s
At line 111 in file startup_stm32f030x6.s
__Vectors_End 000000B0
Symbol: __Vectors_End
Definitions
At line 109 in file startup_stm32f030x6.s
Uses
At line 58 in file startup_stm32f030x6.s
At line 111 in file startup_stm32f030x6.s
3 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Relocatable symbols
.text 00000000
Symbol: .text
Definitions
At line 113 in file startup_stm32f030x6.s
Uses
None
Comment: .text unused
ADC1_IRQHandler 00000012
Symbol: ADC1_IRQHandler
Definitions
At line 184 in file startup_stm32f030x6.s
Uses
At line 91 in file startup_stm32f030x6.s
At line 162 in file startup_stm32f030x6.s
DMA1_Channel1_IRQHandler 00000012
Symbol: DMA1_Channel1_IRQHandler
Definitions
At line 181 in file startup_stm32f030x6.s
Uses
At line 88 in file startup_stm32f030x6.s
At line 159 in file startup_stm32f030x6.s
DMA1_Channel2_3_IRQHandler 00000012
Symbol: DMA1_Channel2_3_IRQHandler
Definitions
At line 182 in file startup_stm32f030x6.s
Uses
At line 89 in file startup_stm32f030x6.s
At line 160 in file startup_stm32f030x6.s
DMA1_Channel4_5_IRQHandler 00000012
Symbol: DMA1_Channel4_5_IRQHandler
Definitions
At line 183 in file startup_stm32f030x6.s
Uses
At line 90 in file startup_stm32f030x6.s
At line 161 in file startup_stm32f030x6.s
Default_Handler 00000012
Symbol: Default_Handler
Definitions
At line 150 in file startup_stm32f030x6.s
Uses
None
Comment: Default_Handler unused
EXTI0_1_IRQHandler 00000012
Symbol: EXTI0_1_IRQHandler
Definitions
At line 178 in file startup_stm32f030x6.s
Uses
At line 84 in file startup_stm32f030x6.s
ARM Macro Assembler Page 2 Alphabetic symbol ordering
Relocatable symbols
At line 156 in file startup_stm32f030x6.s
EXTI2_3_IRQHandler 00000012
Symbol: EXTI2_3_IRQHandler
Definitions
At line 179 in file startup_stm32f030x6.s
Uses
At line 85 in file startup_stm32f030x6.s
At line 157 in file startup_stm32f030x6.s
EXTI4_15_IRQHandler 00000012
Symbol: EXTI4_15_IRQHandler
Definitions
At line 180 in file startup_stm32f030x6.s
Uses
At line 86 in file startup_stm32f030x6.s
At line 158 in file startup_stm32f030x6.s
FLASH_IRQHandler 00000012
Symbol: FLASH_IRQHandler
Definitions
At line 176 in file startup_stm32f030x6.s
Uses
At line 82 in file startup_stm32f030x6.s
At line 154 in file startup_stm32f030x6.s
HardFault_Handler 0000000A
Symbol: HardFault_Handler
Definitions
At line 133 in file startup_stm32f030x6.s
Uses
At line 64 in file startup_stm32f030x6.s
At line 134 in file startup_stm32f030x6.s
I2C1_IRQHandler 00000012
Symbol: I2C1_IRQHandler
Definitions
At line 191 in file startup_stm32f030x6.s
Uses
At line 102 in file startup_stm32f030x6.s
At line 169 in file startup_stm32f030x6.s
NMI_Handler 00000008
Symbol: NMI_Handler
Definitions
At line 128 in file startup_stm32f030x6.s
Uses
At line 63 in file startup_stm32f030x6.s
At line 129 in file startup_stm32f030x6.s
PendSV_Handler 0000000E
Symbol: PendSV_Handler
ARM Macro Assembler Page 3 Alphabetic symbol ordering
Relocatable symbols
Definitions
At line 141 in file startup_stm32f030x6.s
Uses
At line 75 in file startup_stm32f030x6.s
At line 142 in file startup_stm32f030x6.s
RCC_IRQHandler 00000012
Symbol: RCC_IRQHandler
Definitions
At line 177 in file startup_stm32f030x6.s
Uses
At line 83 in file startup_stm32f030x6.s
At line 155 in file startup_stm32f030x6.s
RTC_IRQHandler 00000012
Symbol: RTC_IRQHandler
Definitions
At line 175 in file startup_stm32f030x6.s
Uses
At line 81 in file startup_stm32f030x6.s
At line 153 in file startup_stm32f030x6.s
Reset_Handler 00000000
Symbol: Reset_Handler
Definitions
At line 116 in file startup_stm32f030x6.s
Uses
At line 62 in file startup_stm32f030x6.s
At line 117 in file startup_stm32f030x6.s
SPI1_IRQHandler 00000012
Symbol: SPI1_IRQHandler
Definitions
At line 192 in file startup_stm32f030x6.s
Uses
At line 104 in file startup_stm32f030x6.s
At line 170 in file startup_stm32f030x6.s
SVC_Handler 0000000C
Symbol: SVC_Handler
Definitions
At line 137 in file startup_stm32f030x6.s
Uses
At line 72 in file startup_stm32f030x6.s
At line 138 in file startup_stm32f030x6.s
SysTick_Handler 00000010
Symbol: SysTick_Handler
Definitions
At line 145 in file startup_stm32f030x6.s
Uses
At line 76 in file startup_stm32f030x6.s
At line 146 in file startup_stm32f030x6.s
ARM Macro Assembler Page 4 Alphabetic symbol ordering
Relocatable symbols
TIM14_IRQHandler 00000012
Symbol: TIM14_IRQHandler
Definitions
At line 188 in file startup_stm32f030x6.s
Uses
At line 98 in file startup_stm32f030x6.s
At line 166 in file startup_stm32f030x6.s
TIM16_IRQHandler 00000012
Symbol: TIM16_IRQHandler
Definitions
At line 189 in file startup_stm32f030x6.s
Uses
At line 100 in file startup_stm32f030x6.s
At line 167 in file startup_stm32f030x6.s
TIM17_IRQHandler 00000012
Symbol: TIM17_IRQHandler
Definitions
At line 190 in file startup_stm32f030x6.s
Uses
At line 101 in file startup_stm32f030x6.s
At line 168 in file startup_stm32f030x6.s
TIM1_BRK_UP_TRG_COM_IRQHandler 00000012
Symbol: TIM1_BRK_UP_TRG_COM_IRQHandler
Definitions
At line 185 in file startup_stm32f030x6.s
Uses
At line 92 in file startup_stm32f030x6.s
At line 163 in file startup_stm32f030x6.s
TIM1_CC_IRQHandler 00000012
Symbol: TIM1_CC_IRQHandler
Definitions
At line 186 in file startup_stm32f030x6.s
Uses
At line 93 in file startup_stm32f030x6.s
At line 164 in file startup_stm32f030x6.s
TIM3_IRQHandler 00000012
Symbol: TIM3_IRQHandler
Definitions
At line 187 in file startup_stm32f030x6.s
Uses
At line 95 in file startup_stm32f030x6.s
At line 165 in file startup_stm32f030x6.s
USART1_IRQHandler 00000012
Symbol: USART1_IRQHandler
Definitions
ARM Macro Assembler Page 5 Alphabetic symbol ordering
Relocatable symbols
At line 193 in file startup_stm32f030x6.s
Uses
At line 106 in file startup_stm32f030x6.s
At line 171 in file startup_stm32f030x6.s
WWDG_IRQHandler 00000012
Symbol: WWDG_IRQHandler
Definitions
At line 174 in file startup_stm32f030x6.s
Uses
At line 79 in file startup_stm32f030x6.s
At line 152 in file startup_stm32f030x6.s
__user_initial_stackheap 00000014
Symbol: __user_initial_stackheap
Definitions
At line 215 in file startup_stm32f030x6.s
Uses
At line 213 in file startup_stm32f030x6.s
Comment: __user_initial_stackheap used once
29 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
Absolute symbols
Heap_Size 00000200
Symbol: Heap_Size
Definitions
At line 44 in file startup_stm32f030x6.s
Uses
At line 48 in file startup_stm32f030x6.s
At line 219 in file startup_stm32f030x6.s
Stack_Size 00000400
Symbol: Stack_Size
Definitions
At line 33 in file startup_stm32f030x6.s
Uses
At line 36 in file startup_stm32f030x6.s
At line 218 in file startup_stm32f030x6.s
__Vectors_Size 000000B0
Symbol: __Vectors_Size
Definitions
At line 111 in file startup_stm32f030x6.s
Uses
At line 59 in file startup_stm32f030x6.s
Comment: __Vectors_Size used once
3 symbols
ARM Macro Assembler Page 1 Alphabetic symbol ordering
External symbols
SystemInit 00000000
Symbol: SystemInit
Definitions
At line 119 in file startup_stm32f030x6.s
Uses
At line 120 in file startup_stm32f030x6.s
Comment: SystemInit used once
__main 00000000
Symbol: __main
Definitions
At line 118 in file startup_stm32f030x6.s
Uses
At line 122 in file startup_stm32f030x6.s
Comment: __main used once
__use_two_region_memory 00000000
Symbol: __use_two_region_memory
Definitions
At line 212 in file startup_stm32f030x6.s
Uses
None
Comment: __use_two_region_memory unused
3 symbols
382 symbols in table