ARM Macro Assembler Page 1 1 00000000 ;******************************************************* *********************** 2 00000000 ;* @file startup_py32f002bxx.s 3 00000000 ;* @author MCU Application Team 4 00000000 ;* @brief PY32F002Bxx 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_Handler 8 00000000 ;* - Set the vector table entries with the exce ptions ISR address 9 00000000 ;* - Branches to __main in the C library (which eventually 10 00000000 ;* calls main()). 11 00000000 ;* After Reset the CortexM0+ processor is in Th read mode, 12 00000000 ;* priority is Privileged, and the Stack is set to Main. 13 00000000 ;******************************************************* *********************** 14 00000000 ;* @attention 15 00000000 ;* 16 00000000 ;*

© Copyright (c) Puya Semiconductor C o. 17 00000000 ;* All rights reserved.

18 00000000 ;* 19 00000000 ;*

© Copyright (c) 2016 STMicroelectron ics. 20 00000000 ;* All rights reserved.

21 00000000 ;* 22 00000000 ;* This software component is licensed by ST under BSD 3 -Clause license, 23 00000000 ;* the "License"; You may not use this file except in co mpliance with the 24 00000000 ;* License. You may obtain a copy of the License at: 25 00000000 ;* opensource.org/licenses/BSD-3- Clause 26 00000000 ;* 27 00000000 ;******************************************************* *********************** 28 00000000 ;* <<< Use Configuration Wizard in Context Menu >>> 29 00000000 30 00000000 ; Amount of memory (in bytes) allocated for Stack 31 00000000 ; Tailor this value to your application needs 32 00000000 ; Stack Configuration 33 00000000 ; Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> 34 00000000 ; 35 00000000 36 00000000 00000400 Stack_Size EQU 0x00000400 37 00000000 38 00000000 AREA STACK, NOINIT, READWRITE, ALIGN =3 39 00000000 Stack_Mem SPACE Stack_Size 40 00000400 __initial_sp 41 00000400 42 00000400 ARM Macro Assembler Page 2 43 00000400 ; Heap Configuration 44 00000400 ; Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> 45 00000400 ; 46 00000400 47 00000400 00000000 Heap_Size EQU 0x00000000 48 00000400 49 00000400 AREA HEAP, NOINIT, READWRITE, ALIGN= 3 50 00000000 __heap_base 51 00000000 Heap_Mem SPACE Heap_Size 52 00000000 __heap_limit 53 00000000 54 00000000 55 00000000 PRESERVE8 56 00000000 THUMB 57 00000000 58 00000000 59 00000000 ; Vector Table Mapped to Address 0 at Reset 60 00000000 AREA RESET, DATA, READONLY 61 00000000 EXPORT __Vectors 62 00000000 EXPORT __Vectors_End 63 00000000 EXPORT __Vectors_Size 64 00000000 65 00000000 00000000 __Vectors DCD __initial_sp ; Top of Stack 66 00000004 00000000 DCD Reset_Handler ; Reset Handler 67 00000008 00000000 DCD NMI_Handler ; NMI Handler 68 0000000C 00000000 DCD HardFault_Handler ; Hard Fault Handler 69 00000010 00000000 DCD 0 ; Reserved 70 00000014 00000000 DCD 0 ; Reserved 71 00000018 00000000 DCD 0 ; Reserved 72 0000001C 00000000 DCD 0 ; Reserved 73 00000020 00000000 DCD 0 ; Reserved 74 00000024 00000000 DCD 0 ; Reserved 75 00000028 00000000 DCD 0 ; Reserved 76 0000002C 00000000 DCD SVC_Handler ; SVCall Handler 77 00000030 00000000 DCD 0 ; Reserved 78 00000034 00000000 DCD 0 ; Reserved 79 00000038 00000000 DCD PendSV_Handler ; PendSV Handler 80 0000003C 00000000 DCD SysTick_Handler ; SysTick Handler 81 00000040 82 00000040 ; External Interrupts 83 00000040 00000000 DCD 0 ; 0Reserved 84 00000044 00000000 DCD 0 ; 1Reserved 85 00000048 00000000 DCD 0 ; 2Reserved 86 0000004C 00000000 DCD FLASH_IRQHandler ; 3FLASH 87 00000050 00000000 DCD RCC_IRQHandler ; 4RCC 88 00000054 00000000 DCD EXTI0_1_IRQHandler ; 5EXTI Line 0 and 1 89 00000058 00000000 DCD EXTI2_3_IRQHandler ; 6EXTI Line 2 and 3 90 0000005C 00000000 DCD EXTI4_15_IRQHandler ; 7EXTI Lin ARM Macro Assembler Page 3 e 4 to 15 91 00000060 00000000 DCD 0 ; 8Reserved 92 00000064 00000000 DCD 0 ; 9Reserved 93 00000068 00000000 DCD 0 ; 10Reserved 94 0000006C 00000000 DCD 0 ; 11Reserved 95 00000070 00000000 DCD ADC_COMP_IRQHandler ; 12ADC&COMP1 96 00000074 00000000 DCD TIM1_BRK_UP_TRG_COM_IRQHandler ; 13TIM1 Break, Upd ate, Trigger and Co mmutation 97 00000078 00000000 DCD TIM1_CC_IRQHandler ; 14TIM1 Cap ture Compare 98 0000007C 00000000 DCD 0 ; 15Reserved 99 00000080 00000000 DCD 0 ; 16Reserved 100 00000084 00000000 DCD LPTIM1_IRQHandler ; 17LPTIM1 101 00000088 00000000 DCD 0 ; 18Reserved 102 0000008C 00000000 DCD TIM14_IRQHandler ; 19TIM14 103 00000090 00000000 DCD 0 ; 20Reserved 104 00000094 00000000 DCD 0 ; 21Reserved 105 00000098 00000000 DCD 0 ; 22Reserved 106 0000009C 00000000 DCD I2C1_IRQHandler ; 23I2C1 107 000000A0 00000000 DCD 0 ; 24Reserved 108 000000A4 00000000 DCD SPI1_IRQHandler ; 25SPI1 109 000000A8 00000000 DCD 0 ; 26Reserved 110 000000AC 00000000 DCD USART1_IRQHandler ; 27USART1 111 000000B0 00000000 DCD 0 ; 28Reserved 112 000000B4 00000000 DCD 0 ; 29Reserved 113 000000B8 00000000 DCD 0 ; 30Reserved 114 000000BC 00000000 DCD 0 ; 31Reserved 115 000000C0 __Vectors_End 116 000000C0 117 000000C0 000000C0 __Vectors_Size EQU __Vectors_End - __Vectors 118 000000C0 119 000000C0 AREA |.text|, CODE, READONLY 120 00000000 121 00000000 122 00000000 ; Reset Handler 123 00000000 124 00000000 Reset_Handler PROC 125 00000000 EXPORT Reset_Handler [WEAK ] 126 00000000 IMPORT SystemInit 127 00000000 IMPORT __main 128 00000000 4804 LDR R0, =SystemInit 129 00000002 4780 BLX R0 130 00000004 4804 LDR R0, =__main 131 00000006 4700 BX R0 132 00000008 ENDP 133 00000008 134 00000008 135 00000008 ; Dummy Exception Handlers (infinite loops which can be modified) 136 00000008 137 00000008 NMI_Handler PROC ARM Macro Assembler Page 4 138 00000008 EXPORT NMI_Handler [WEAK ] 139 00000008 E7FE B . 140 0000000A ENDP 142 0000000A HardFault_Handler PROC 143 0000000A EXPORT HardFault_Handler [WEAK ] 144 0000000A E7FE B . 145 0000000C ENDP 146 0000000C SVC_Handler PROC 147 0000000C EXPORT SVC_Handler [WEAK ] 148 0000000C E7FE B . 149 0000000E ENDP 150 0000000E PendSV_Handler PROC 151 0000000E EXPORT PendSV_Handler [WEAK ] 152 0000000E E7FE B . 153 00000010 ENDP 154 00000010 SysTick_Handler PROC 155 00000010 EXPORT SysTick_Handler [WEAK ] 156 00000010 E7FE B . 157 00000012 ENDP 158 00000012 159 00000012 Default_Handler PROC 160 00000012 161 00000012 EXPORT FLASH_IRQHandler [WEAK] 162 00000012 EXPORT RCC_IRQHandler [WEAK] 163 00000012 EXPORT EXTI0_1_IRQHandler [WEAK] 164 00000012 EXPORT EXTI2_3_IRQHandler [WEAK] 165 00000012 EXPORT EXTI4_15_IRQHandler [WEAK] 166 00000012 EXPORT ADC_COMP_IRQHandler [WEAK] 167 00000012 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler [WEAK] 168 00000012 EXPORT TIM1_CC_IRQHandler [WEAK] 169 00000012 EXPORT LPTIM1_IRQHandler [WEAK] 170 00000012 EXPORT TIM14_IRQHandler [WEAK] 171 00000012 EXPORT I2C1_IRQHandler [WEAK] 172 00000012 EXPORT SPI1_IRQHandler [WEAK] 173 00000012 EXPORT USART1_IRQHandler [WEAK] 174 00000012 ARM Macro Assembler Page 5 175 00000012 FLASH_IRQHandler 176 00000012 RCC_IRQHandler 177 00000012 EXTI0_1_IRQHandler 178 00000012 EXTI2_3_IRQHandler 179 00000012 EXTI4_15_IRQHandler 180 00000012 ADC_COMP_IRQHandler 181 00000012 TIM1_BRK_UP_TRG_COM_IRQHandler 182 00000012 TIM1_CC_IRQHandler 183 00000012 LPTIM1_IRQHandler 184 00000012 TIM14_IRQHandler 185 00000012 I2C1_IRQHandler 186 00000012 SPI1_IRQHandler 187 00000012 USART1_IRQHandler 188 00000012 E7FE B . 189 00000014 ENDP 190 00000014 191 00000014 ALIGN 192 00000014 193 00000014 ; User Initial Stack & Heap 194 00000014 195 00000014 IF :DEF:__MICROLIB 196 00000014 197 00000014 EXPORT __initial_sp 198 00000014 EXPORT __heap_base 199 00000014 EXPORT __heap_limit 200 00000014 201 00000014 ELSE 216 ENDIF 217 00000014 218 00000014 END 00000000 00000000 Command Line: --debug --xref --diag_suppress=9931,A1950W --cpu=Cortex-M0+ --dep end=.\output\startup_py32f002bxx.d -o.\output\startup_py32f002bxx.o -I.\RTE\_PY 32F002Bx5_Project -IC:\Users\I\AppData\Local\Arm\Packs\ARM\CMSIS\5.9.0\CMSIS\Co re\Include -IC:\Users\I\AppData\Local\Arm\Packs\Puya\PY32F0xx_DFP\1.2.2\Drivers \CMSIS\Device\PY32F0xx\Include -IC:\Users\I\AppData\Local\Arm\Packs\Puya\PY32F0 xx_DFP\1.2.2\Device\Include --predefine="__MICROLIB SETA 1" --predefine="__UVIS ION_VERSION SETA 538" --predefine="_RTE_ SETA 1" --predefine="_RTE_ SETA 1" --l ist=.\output\startup_py32f002bxx.lst startup_py32f002bxx.s ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols STACK 00000000 Symbol: STACK Definitions At line 38 in file startup_py32f002bxx.s Uses None Comment: STACK unused Stack_Mem 00000000 Symbol: Stack_Mem Definitions At line 39 in file startup_py32f002bxx.s Uses None Comment: Stack_Mem unused __initial_sp 00000400 Symbol: __initial_sp Definitions At line 40 in file startup_py32f002bxx.s Uses At line 65 in file startup_py32f002bxx.s At line 197 in file startup_py32f002bxx.s 3 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols HEAP 00000000 Symbol: HEAP Definitions At line 49 in file startup_py32f002bxx.s Uses None Comment: HEAP unused Heap_Mem 00000000 Symbol: Heap_Mem Definitions At line 51 in file startup_py32f002bxx.s Uses None Comment: Heap_Mem unused __heap_base 00000000 Symbol: __heap_base Definitions At line 50 in file startup_py32f002bxx.s Uses At line 198 in file startup_py32f002bxx.s Comment: __heap_base used once __heap_limit 00000000 Symbol: __heap_limit Definitions At line 52 in file startup_py32f002bxx.s Uses At line 199 in file startup_py32f002bxx.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 60 in file startup_py32f002bxx.s Uses None Comment: RESET unused __Vectors 00000000 Symbol: __Vectors Definitions At line 65 in file startup_py32f002bxx.s Uses At line 61 in file startup_py32f002bxx.s At line 117 in file startup_py32f002bxx.s __Vectors_End 000000C0 Symbol: __Vectors_End Definitions At line 115 in file startup_py32f002bxx.s Uses At line 62 in file startup_py32f002bxx.s At line 117 in file startup_py32f002bxx.s 3 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Relocatable symbols .text 00000000 Symbol: .text Definitions At line 119 in file startup_py32f002bxx.s Uses None Comment: .text unused ADC_COMP_IRQHandler 00000012 Symbol: ADC_COMP_IRQHandler Definitions At line 180 in file startup_py32f002bxx.s Uses At line 95 in file startup_py32f002bxx.s At line 166 in file startup_py32f002bxx.s Default_Handler 00000012 Symbol: Default_Handler Definitions At line 159 in file startup_py32f002bxx.s Uses None Comment: Default_Handler unused EXTI0_1_IRQHandler 00000012 Symbol: EXTI0_1_IRQHandler Definitions At line 177 in file startup_py32f002bxx.s Uses At line 88 in file startup_py32f002bxx.s At line 163 in file startup_py32f002bxx.s EXTI2_3_IRQHandler 00000012 Symbol: EXTI2_3_IRQHandler Definitions At line 178 in file startup_py32f002bxx.s Uses At line 89 in file startup_py32f002bxx.s At line 164 in file startup_py32f002bxx.s EXTI4_15_IRQHandler 00000012 Symbol: EXTI4_15_IRQHandler Definitions At line 179 in file startup_py32f002bxx.s Uses At line 90 in file startup_py32f002bxx.s At line 165 in file startup_py32f002bxx.s FLASH_IRQHandler 00000012 Symbol: FLASH_IRQHandler Definitions At line 175 in file startup_py32f002bxx.s Uses At line 86 in file startup_py32f002bxx.s ARM Macro Assembler Page 2 Alphabetic symbol ordering Relocatable symbols At line 161 in file startup_py32f002bxx.s HardFault_Handler 0000000A Symbol: HardFault_Handler Definitions At line 142 in file startup_py32f002bxx.s Uses At line 68 in file startup_py32f002bxx.s At line 143 in file startup_py32f002bxx.s I2C1_IRQHandler 00000012 Symbol: I2C1_IRQHandler Definitions At line 185 in file startup_py32f002bxx.s Uses At line 106 in file startup_py32f002bxx.s At line 171 in file startup_py32f002bxx.s LPTIM1_IRQHandler 00000012 Symbol: LPTIM1_IRQHandler Definitions At line 183 in file startup_py32f002bxx.s Uses At line 100 in file startup_py32f002bxx.s At line 169 in file startup_py32f002bxx.s NMI_Handler 00000008 Symbol: NMI_Handler Definitions At line 137 in file startup_py32f002bxx.s Uses At line 67 in file startup_py32f002bxx.s At line 138 in file startup_py32f002bxx.s PendSV_Handler 0000000E Symbol: PendSV_Handler Definitions At line 150 in file startup_py32f002bxx.s Uses At line 79 in file startup_py32f002bxx.s At line 151 in file startup_py32f002bxx.s RCC_IRQHandler 00000012 Symbol: RCC_IRQHandler Definitions At line 176 in file startup_py32f002bxx.s Uses At line 87 in file startup_py32f002bxx.s At line 162 in file startup_py32f002bxx.s Reset_Handler 00000000 Symbol: Reset_Handler ARM Macro Assembler Page 3 Alphabetic symbol ordering Relocatable symbols Definitions At line 124 in file startup_py32f002bxx.s Uses At line 66 in file startup_py32f002bxx.s At line 125 in file startup_py32f002bxx.s SPI1_IRQHandler 00000012 Symbol: SPI1_IRQHandler Definitions At line 186 in file startup_py32f002bxx.s Uses At line 108 in file startup_py32f002bxx.s At line 172 in file startup_py32f002bxx.s SVC_Handler 0000000C Symbol: SVC_Handler Definitions At line 146 in file startup_py32f002bxx.s Uses At line 76 in file startup_py32f002bxx.s At line 147 in file startup_py32f002bxx.s SysTick_Handler 00000010 Symbol: SysTick_Handler Definitions At line 154 in file startup_py32f002bxx.s Uses At line 80 in file startup_py32f002bxx.s At line 155 in file startup_py32f002bxx.s TIM14_IRQHandler 00000012 Symbol: TIM14_IRQHandler Definitions At line 184 in file startup_py32f002bxx.s Uses At line 102 in file startup_py32f002bxx.s At line 170 in file startup_py32f002bxx.s TIM1_BRK_UP_TRG_COM_IRQHandler 00000012 Symbol: TIM1_BRK_UP_TRG_COM_IRQHandler Definitions At line 181 in file startup_py32f002bxx.s Uses At line 96 in file startup_py32f002bxx.s At line 167 in file startup_py32f002bxx.s TIM1_CC_IRQHandler 00000012 Symbol: TIM1_CC_IRQHandler Definitions At line 182 in file startup_py32f002bxx.s Uses At line 97 in file startup_py32f002bxx.s At line 168 in file startup_py32f002bxx.s ARM Macro Assembler Page 4 Alphabetic symbol ordering Relocatable symbols USART1_IRQHandler 00000012 Symbol: USART1_IRQHandler Definitions At line 187 in file startup_py32f002bxx.s Uses At line 110 in file startup_py32f002bxx.s At line 173 in file startup_py32f002bxx.s 21 symbols ARM Macro Assembler Page 1 Alphabetic symbol ordering Absolute symbols Heap_Size 00000000 Symbol: Heap_Size Definitions At line 47 in file startup_py32f002bxx.s Uses At line 51 in file startup_py32f002bxx.s Comment: Heap_Size used once Stack_Size 00000400 Symbol: Stack_Size Definitions At line 36 in file startup_py32f002bxx.s Uses At line 39 in file startup_py32f002bxx.s Comment: Stack_Size used once __Vectors_Size 000000C0 Symbol: __Vectors_Size Definitions At line 117 in file startup_py32f002bxx.s Uses At line 63 in file startup_py32f002bxx.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 126 in file startup_py32f002bxx.s Uses At line 128 in file startup_py32f002bxx.s Comment: SystemInit used once __main 00000000 Symbol: __main Definitions At line 127 in file startup_py32f002bxx.s Uses At line 130 in file startup_py32f002bxx.s Comment: __main used once 2 symbols 371 symbols in table