ARM Macro Assembler Page 1 1 00000000 ;******************************************************* ************************ 2 00000000 ;* File Name : startup_stm32f070x6.s 3 00000000 ;* Author : MCD Application Team 4 00000000 ;* Description : STM32F070x4/STM32F070x6 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 00000000 DCD USART2_IRQHandler ; USART2 108 000000B4 00000000 DCD 0 ; Reserved 109 000000B8 00000000 DCD 0 ; Reserved 110 000000BC 00000000 DCD USB_IRQHandler ; USB 111 000000C0 112 000000C0 __Vectors_End 113 000000C0 114 000000C0 000000C0 __Vectors_Size EQU __Vectors_End - __Vectors 115 000000C0 116 000000C0 AREA |.text|, CODE, READONLY 117 00000000 118 00000000 ; Reset handler routine 119 00000000 Reset_Handler PROC 120 00000000 EXPORT Reset_Handler [ WEAK] 121 00000000 IMPORT __main 122 00000000 IMPORT SystemInit 123 00000000 124 00000000 125 00000000 126 00000000 480C LDR R0, =__initial_sp ; set stack p ointer 127 00000002 F380 8808 MSR MSP, R0 128 00000006 129 00000006 ;;Check if boot space corresponds to test memory 130 00000006 131 00000006 480C LDR R0,=0x00000004 ARM Macro Assembler Page 4 132 00000008 6801 LDR R1, [R0] 133 0000000A 0E09 LSRS R1, R1, #24 134 0000000C 4A0B LDR R2,=0x1F 135 0000000E 4291 CMP R1, R2 136 00000010 137 00000010 D105 BNE ApplicationStart 138 00000012 139 00000012 ;; SYSCFG clock enable 140 00000012 141 00000012 480B LDR R0,=0x40021018 142 00000014 490B LDR R1,=0x00000001 143 00000016 6001 STR R1, [R0] 144 00000018 145 00000018 146 00000018 ;; Set CFGR1 register with flash memory remap at address 0 147 00000018 148 00000018 480B LDR R0,=0x40010000 149 0000001A 490C LDR R1,=0x00000000 150 0000001C 6001 STR R1, [R0] 151 0000001E ApplicationStart 152 0000001E 480C LDR R0, =SystemInit 153 00000020 4780 BLX R0 154 00000022 480C LDR R0, =__main 155 00000024 4700 BX R0 156 00000026 ENDP 157 00000026 158 00000026 ; Dummy Exception Handlers (infinite loops which can be modified) 159 00000026 160 00000026 NMI_Handler PROC 161 00000026 EXPORT NMI_Handler [WEAK] 162 00000026 E7FE B . 163 00000028 ENDP 165 00000028 HardFault_Handler PROC 166 00000028 EXPORT HardFault_Handler [WEAK] 167 00000028 E7FE B . 168 0000002A ENDP 169 0000002A SVC_Handler PROC 170 0000002A EXPORT SVC_Handler [WEAK] 171 0000002A E7FE B . 172 0000002C ENDP 173 0000002C PendSV_Handler PROC 174 0000002C EXPORT PendSV_Handler [WEAK] 175 0000002C E7FE B . 176 0000002E ENDP 177 0000002E SysTick_Handler PROC 178 0000002E EXPORT SysTick_Handler [WEAK] 179 0000002E E7FE B . ARM Macro Assembler Page 5 180 00000030 ENDP 181 00000030 182 00000030 Default_Handler PROC 183 00000030 184 00000030 EXPORT WWDG_IRQHandler [WEAK] 185 00000030 EXPORT RTC_IRQHandler [WEAK] 186 00000030 EXPORT FLASH_IRQHandler [WEAK] 187 00000030 EXPORT RCC_IRQHandler [WEAK] 188 00000030 EXPORT EXTI0_1_IRQHandler [WEAK] 189 00000030 EXPORT EXTI2_3_IRQHandler [WEAK] 190 00000030 EXPORT EXTI4_15_IRQHandler [WEAK] 191 00000030 EXPORT DMA1_Channel1_IRQHandler [WEAK] 192 00000030 EXPORT DMA1_Channel2_3_IRQHandler [WEAK] 193 00000030 EXPORT DMA1_Channel4_5_IRQHandler [WEA K] 194 00000030 EXPORT ADC1_IRQHandler [WEAK ] 195 00000030 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler [WEAK] 196 00000030 EXPORT TIM1_CC_IRQHandler [WEAK] 197 00000030 EXPORT TIM3_IRQHandler [WEAK] 198 00000030 EXPORT TIM14_IRQHandler [WEAK] 199 00000030 EXPORT TIM16_IRQHandler [WEAK] 200 00000030 EXPORT TIM17_IRQHandler [WEAK] 201 00000030 EXPORT I2C1_IRQHandler [WEAK] 202 00000030 EXPORT SPI1_IRQHandler [WEAK] 203 00000030 EXPORT USART1_IRQHandler [WEAK] 204 00000030 EXPORT USART2_IRQHandler [WEAK] 205 00000030 EXPORT USB_IRQHandler [WEAK] 206 00000030 207 00000030 208 00000030 WWDG_IRQHandler 209 00000030 RTC_IRQHandler 210 00000030 FLASH_IRQHandler 211 00000030 RCC_IRQHandler 212 00000030 EXTI0_1_IRQHandler 213 00000030 EXTI2_3_IRQHandler 214 00000030 EXTI4_15_IRQHandler 215 00000030 DMA1_Channel1_IRQHandler ARM Macro Assembler Page 6 216 00000030 DMA1_Channel2_3_IRQHandler 217 00000030 DMA1_Channel4_5_IRQHandler 218 00000030 ADC1_IRQHandler 219 00000030 TIM1_BRK_UP_TRG_COM_IRQHandler 220 00000030 TIM1_CC_IRQHandler 221 00000030 TIM3_IRQHandler 222 00000030 TIM14_IRQHandler 223 00000030 TIM16_IRQHandler 224 00000030 TIM17_IRQHandler 225 00000030 I2C1_IRQHandler 226 00000030 SPI1_IRQHandler 227 00000030 USART1_IRQHandler 228 00000030 USART2_IRQHandler 229 00000030 USB_IRQHandler 230 00000030 231 00000030 E7FE B . 232 00000032 233 00000032 ENDP 234 00000032 235 00000032 00 00 ALIGN 236 00000034 237 00000034 ;******************************************************* ************************ 238 00000034 ; User Stack and Heap initialization 239 00000034 ;******************************************************* ************************ 240 00000034 IF :DEF:__MICROLIB 241 00000034 242 00000034 EXPORT __initial_sp 243 00000034 EXPORT __heap_base 244 00000034 EXPORT __heap_limit 245 00000034 246 00000034 ELSE 261 ENDIF 262 00000034 263 00000034 END 00000000 00000004 0000001F 40021018 00000001 40010000 00000000 00000000 00000000 Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --apcs=interw ork --depend=stm32_keyborad\startup_stm32f070x6.d -ostm32_keyborad\startup_stm3 2f070x6.o -I.\RTE\_stm32_keyborad -ID:\Keil_v5\Arm\Packs\ARM\CMSIS\5.9.0\CMSIS\ Core\Include -ID:\Keil_v5\Arm\Packs\Keil\STM32F0xx_DFP\2.0.0\Drivers\CMSIS\Devi ce\ST\STM32F0xx\Include --predefine="__MICROLIB SETA 1" --predefine="__UVISION_ VERSION SETA 525" --predefine="_RTE_ SETA 1" --predefine="STM32F070x6 SETA 1" - -list=startup_stm32f070x6.lst startup_stm32f070x6.s ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols STACK 00000000 Symbol: STACK Definitions At line 35 in file startup_stm32f070x6.s Uses None Comment: STACK unused Stack_Mem 00000000 Symbol: Stack_Mem Definitions At line 36 in file startup_stm32f070x6.s Uses None Comment: Stack_Mem unused __initial_sp 00000400 Symbol: __initial_sp Definitions At line 37 in file startup_stm32f070x6.s Uses At line 61 in file startup_stm32f070x6.s At line 126 in file startup_stm32f070x6.s At line 242 in file startup_stm32f070x6.s 3 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols HEAP 00000000 Symbol: HEAP Definitions At line 46 in file startup_stm32f070x6.s Uses None Comment: HEAP unused Heap_Mem 00000000 Symbol: Heap_Mem Definitions At line 48 in file startup_stm32f070x6.s Uses None Comment: Heap_Mem unused __heap_base 00000000 Symbol: __heap_base Definitions At line 47 in file startup_stm32f070x6.s Uses At line 243 in file startup_stm32f070x6.s Comment: __heap_base used once __heap_limit 00000200 Symbol: __heap_limit Definitions At line 49 in file startup_stm32f070x6.s Uses At line 244 in file startup_stm32f070x6.s Comment: __heap_limit used once 4 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols RESET 00000000 Symbol: RESET Definitions At line 56 in file startup_stm32f070x6.s Uses None Comment: RESET unused __Vectors 00000000 Symbol: __Vectors Definitions At line 61 in file startup_stm32f070x6.s Uses At line 57 in file startup_stm32f070x6.s At line 114 in file startup_stm32f070x6.s __Vectors_End 000000C0 Symbol: __Vectors_End Definitions At line 112 in file startup_stm32f070x6.s Uses At line 58 in file startup_stm32f070x6.s At line 114 in file startup_stm32f070x6.s 3 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols .text 00000000 Symbol: .text Definitions At line 116 in file startup_stm32f070x6.s Uses None Comment: .text unused ADC1_IRQHandler 00000030 Symbol: ADC1_IRQHandler Definitions At line 218 in file startup_stm32f070x6.s Uses At line 91 in file startup_stm32f070x6.s At line 194 in file startup_stm32f070x6.s ApplicationStart 0000001E Symbol: ApplicationStart Definitions At line 151 in file startup_stm32f070x6.s Uses At line 137 in file startup_stm32f070x6.s Comment: ApplicationStart used once DMA1_Channel1_IRQHandler 00000030 Symbol: DMA1_Channel1_IRQHandler Definitions At line 215 in file startup_stm32f070x6.s Uses At line 88 in file startup_stm32f070x6.s At line 191 in file startup_stm32f070x6.s DMA1_Channel2_3_IRQHandler 00000030 Symbol: DMA1_Channel2_3_IRQHandler Definitions At line 216 in file startup_stm32f070x6.s Uses At line 89 in file startup_stm32f070x6.s At line 192 in file startup_stm32f070x6.s DMA1_Channel4_5_IRQHandler 00000030 Symbol: DMA1_Channel4_5_IRQHandler Definitions At line 217 in file startup_stm32f070x6.s Uses At line 90 in file startup_stm32f070x6.s At line 193 in file startup_stm32f070x6.s Default_Handler 00000030 Symbol: Default_Handler Definitions At line 182 in file startup_stm32f070x6.s Uses None ARM Macro Assembler Page 2 Alphabetic symbol ordering Relocatable symbols Comment: Default_Handler unused EXTI0_1_IRQHandler 00000030 Symbol: EXTI0_1_IRQHandler Definitions At line 212 in file startup_stm32f070x6.s Uses At line 84 in file startup_stm32f070x6.s At line 188 in file startup_stm32f070x6.s EXTI2_3_IRQHandler 00000030 Symbol: EXTI2_3_IRQHandler Definitions At line 213 in file startup_stm32f070x6.s Uses At line 85 in file startup_stm32f070x6.s At line 189 in file startup_stm32f070x6.s EXTI4_15_IRQHandler 00000030 Symbol: EXTI4_15_IRQHandler Definitions At line 214 in file startup_stm32f070x6.s Uses At line 86 in file startup_stm32f070x6.s At line 190 in file startup_stm32f070x6.s FLASH_IRQHandler 00000030 Symbol: FLASH_IRQHandler Definitions At line 210 in file startup_stm32f070x6.s Uses At line 82 in file startup_stm32f070x6.s At line 186 in file startup_stm32f070x6.s HardFault_Handler 00000028 Symbol: HardFault_Handler Definitions At line 165 in file startup_stm32f070x6.s Uses At line 64 in file startup_stm32f070x6.s At line 166 in file startup_stm32f070x6.s I2C1_IRQHandler 00000030 Symbol: I2C1_IRQHandler Definitions At line 225 in file startup_stm32f070x6.s Uses At line 102 in file startup_stm32f070x6.s At line 201 in file startup_stm32f070x6.s NMI_Handler 00000026 Symbol: NMI_Handler Definitions ARM Macro Assembler Page 3 Alphabetic symbol ordering Relocatable symbols At line 160 in file startup_stm32f070x6.s Uses At line 63 in file startup_stm32f070x6.s At line 161 in file startup_stm32f070x6.s PendSV_Handler 0000002C Symbol: PendSV_Handler Definitions At line 173 in file startup_stm32f070x6.s Uses At line 75 in file startup_stm32f070x6.s At line 174 in file startup_stm32f070x6.s RCC_IRQHandler 00000030 Symbol: RCC_IRQHandler Definitions At line 211 in file startup_stm32f070x6.s Uses At line 83 in file startup_stm32f070x6.s At line 187 in file startup_stm32f070x6.s RTC_IRQHandler 00000030 Symbol: RTC_IRQHandler Definitions At line 209 in file startup_stm32f070x6.s Uses At line 81 in file startup_stm32f070x6.s At line 185 in file startup_stm32f070x6.s Reset_Handler 00000000 Symbol: Reset_Handler Definitions At line 119 in file startup_stm32f070x6.s Uses At line 62 in file startup_stm32f070x6.s At line 120 in file startup_stm32f070x6.s SPI1_IRQHandler 00000030 Symbol: SPI1_IRQHandler Definitions At line 226 in file startup_stm32f070x6.s Uses At line 104 in file startup_stm32f070x6.s At line 202 in file startup_stm32f070x6.s SVC_Handler 0000002A Symbol: SVC_Handler Definitions At line 169 in file startup_stm32f070x6.s Uses At line 72 in file startup_stm32f070x6.s At line 170 in file startup_stm32f070x6.s ARM Macro Assembler Page 4 Alphabetic symbol ordering Relocatable symbols SysTick_Handler 0000002E Symbol: SysTick_Handler Definitions At line 177 in file startup_stm32f070x6.s Uses At line 76 in file startup_stm32f070x6.s At line 178 in file startup_stm32f070x6.s TIM14_IRQHandler 00000030 Symbol: TIM14_IRQHandler Definitions At line 222 in file startup_stm32f070x6.s Uses At line 98 in file startup_stm32f070x6.s At line 198 in file startup_stm32f070x6.s TIM16_IRQHandler 00000030 Symbol: TIM16_IRQHandler Definitions At line 223 in file startup_stm32f070x6.s Uses At line 100 in file startup_stm32f070x6.s At line 199 in file startup_stm32f070x6.s TIM17_IRQHandler 00000030 Symbol: TIM17_IRQHandler Definitions At line 224 in file startup_stm32f070x6.s Uses At line 101 in file startup_stm32f070x6.s At line 200 in file startup_stm32f070x6.s TIM1_BRK_UP_TRG_COM_IRQHandler 00000030 Symbol: TIM1_BRK_UP_TRG_COM_IRQHandler Definitions At line 219 in file startup_stm32f070x6.s Uses At line 92 in file startup_stm32f070x6.s At line 195 in file startup_stm32f070x6.s TIM1_CC_IRQHandler 00000030 Symbol: TIM1_CC_IRQHandler Definitions At line 220 in file startup_stm32f070x6.s Uses At line 93 in file startup_stm32f070x6.s At line 196 in file startup_stm32f070x6.s TIM3_IRQHandler 00000030 Symbol: TIM3_IRQHandler Definitions At line 221 in file startup_stm32f070x6.s ARM Macro Assembler Page 5 Alphabetic symbol ordering Relocatable symbols Uses At line 95 in file startup_stm32f070x6.s At line 197 in file startup_stm32f070x6.s USART1_IRQHandler 00000030 Symbol: USART1_IRQHandler Definitions At line 227 in file startup_stm32f070x6.s Uses At line 106 in file startup_stm32f070x6.s At line 203 in file startup_stm32f070x6.s USART2_IRQHandler 00000030 Symbol: USART2_IRQHandler Definitions At line 228 in file startup_stm32f070x6.s Uses At line 107 in file startup_stm32f070x6.s At line 204 in file startup_stm32f070x6.s USB_IRQHandler 00000030 Symbol: USB_IRQHandler Definitions At line 229 in file startup_stm32f070x6.s Uses At line 110 in file startup_stm32f070x6.s At line 205 in file startup_stm32f070x6.s WWDG_IRQHandler 00000030 Symbol: WWDG_IRQHandler Definitions At line 208 in file startup_stm32f070x6.s Uses At line 79 in file startup_stm32f070x6.s At line 184 in file startup_stm32f070x6.s 31 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Absolute symbols Heap_Size 00000200 Symbol: Heap_Size Definitions At line 44 in file startup_stm32f070x6.s Uses At line 48 in file startup_stm32f070x6.s Comment: Heap_Size used once Stack_Size 00000400 Symbol: Stack_Size Definitions At line 33 in file startup_stm32f070x6.s Uses At line 36 in file startup_stm32f070x6.s Comment: Stack_Size used once __Vectors_Size 000000C0 Symbol: __Vectors_Size Definitions At line 114 in file startup_stm32f070x6.s Uses At line 59 in file startup_stm32f070x6.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 122 in file startup_stm32f070x6.s Uses At line 152 in file startup_stm32f070x6.s Comment: SystemInit used once __main 00000000 Symbol: __main Definitions At line 121 in file startup_stm32f070x6.s Uses At line 154 in file startup_stm32f070x6.s Comment: __main used once 2 symbols 382 symbols in table