CMSIS library (not dsp)
src/startup_stm32l476xx.s@2:c991e443f67c, 2015-11-22 (annotated)
- Committer:
- EricLew
- Date:
- Sun Nov 22 21:15:21 2015 +0000
- Revision:
- 2:c991e443f67c
- Parent:
- 1:bdae6f863744
11/22/2015
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
EricLew | 0:0ee1b3bb319a | 1 | ;******************** (C) COPYRIGHT 2015 STMicroelectronics ******************** |
EricLew | 0:0ee1b3bb319a | 2 | ;* File Name : startup_stm32l476xx.s |
EricLew | 0:0ee1b3bb319a | 3 | ;* Author : MCD Application Team |
EricLew | 2:c991e443f67c | 4 | ;* Version : V1.1.0 |
EricLew | 0:0ee1b3bb319a | 5 | ;* Date : 16-September-2015 |
EricLew | 0:0ee1b3bb319a | 6 | ;* Description : STM32L476xx Ultra Low Power devices vector table for MDK-ARM toolchain. |
EricLew | 0:0ee1b3bb319a | 7 | ;* This module performs: |
EricLew | 0:0ee1b3bb319a | 8 | ;* - Set the initial SP |
EricLew | 0:0ee1b3bb319a | 9 | ;* - Set the initial PC == Reset_Handler |
EricLew | 0:0ee1b3bb319a | 10 | ;* - Set the vector table entries with the exceptions ISR address |
EricLew | 0:0ee1b3bb319a | 11 | ;* - Branches to __main in the C library (which eventually |
EricLew | 0:0ee1b3bb319a | 12 | ;* calls main()). |
EricLew | 0:0ee1b3bb319a | 13 | ;* After Reset the Cortex-M4 processor is in Thread mode, |
EricLew | 0:0ee1b3bb319a | 14 | ;* priority is Privileged, and the Stack is set to Main. |
EricLew | 0:0ee1b3bb319a | 15 | ;* <<< Use Configuration Wizard in Context Menu >>> |
EricLew | 0:0ee1b3bb319a | 16 | ;******************************************************************************* |
EricLew | 0:0ee1b3bb319a | 17 | ;* |
EricLew | 0:0ee1b3bb319a | 18 | ;* Redistribution and use in source and binary forms, with or without modification, |
EricLew | 0:0ee1b3bb319a | 19 | ;* are permitted provided that the following conditions are met: |
EricLew | 0:0ee1b3bb319a | 20 | ;* 1. Redistributions of source code must retain the above copyright notice, |
EricLew | 0:0ee1b3bb319a | 21 | ;* this list of conditions and the following disclaimer. |
EricLew | 0:0ee1b3bb319a | 22 | ;* 2. Redistributions in binary form must reproduce the above copyright notice, |
EricLew | 0:0ee1b3bb319a | 23 | ;* this list of conditions and the following disclaimer in the documentation |
EricLew | 0:0ee1b3bb319a | 24 | ;* and/or other materials provided with the distribution. |
EricLew | 0:0ee1b3bb319a | 25 | ;* 3. Neither the name of STMicroelectronics nor the names of its contributors |
EricLew | 0:0ee1b3bb319a | 26 | ;* may be used to endorse or promote products derived from this software |
EricLew | 0:0ee1b3bb319a | 27 | ;* without specific prior written permission. |
EricLew | 0:0ee1b3bb319a | 28 | ;* |
EricLew | 0:0ee1b3bb319a | 29 | ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
EricLew | 0:0ee1b3bb319a | 30 | ;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
EricLew | 0:0ee1b3bb319a | 31 | ;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
EricLew | 0:0ee1b3bb319a | 32 | ;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
EricLew | 0:0ee1b3bb319a | 33 | ;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
EricLew | 0:0ee1b3bb319a | 34 | ;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
EricLew | 0:0ee1b3bb319a | 35 | ;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
EricLew | 0:0ee1b3bb319a | 36 | ;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
EricLew | 0:0ee1b3bb319a | 37 | ;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
EricLew | 0:0ee1b3bb319a | 38 | ;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
EricLew | 0:0ee1b3bb319a | 39 | ;* |
EricLew | 0:0ee1b3bb319a | 40 | ;******************************************************************************* |
EricLew | 0:0ee1b3bb319a | 41 | ; |
EricLew | 0:0ee1b3bb319a | 42 | ; Amount of memory (in bytes) allocated for Stack |
EricLew | 0:0ee1b3bb319a | 43 | ; Tailor this value to your application needs |
EricLew | 0:0ee1b3bb319a | 44 | ; <h> Stack Configuration |
EricLew | 0:0ee1b3bb319a | 45 | ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> |
EricLew | 0:0ee1b3bb319a | 46 | ; </h> |
EricLew | 0:0ee1b3bb319a | 47 | |
EricLew | 0:0ee1b3bb319a | 48 | Stack_Size EQU 0x400; |
EricLew | 0:0ee1b3bb319a | 49 | |
EricLew | 0:0ee1b3bb319a | 50 | AREA STACK, NOINIT, READWRITE, ALIGN=3 |
EricLew | 2:c991e443f67c | 51 | EXPORT __initial_sp |
EricLew | 0:0ee1b3bb319a | 52 | Stack_Mem SPACE Stack_Size |
EricLew | 2:c991e443f67c | 53 | __initial_sp |
EricLew | 0:0ee1b3bb319a | 54 | |
EricLew | 0:0ee1b3bb319a | 55 | |
EricLew | 0:0ee1b3bb319a | 56 | ; <h> Heap Configuration |
EricLew | 0:0ee1b3bb319a | 57 | ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> |
EricLew | 0:0ee1b3bb319a | 58 | ; </h> |
EricLew | 0:0ee1b3bb319a | 59 | |
EricLew | 0:0ee1b3bb319a | 60 | Heap_Size EQU 0x200; |
EricLew | 0:0ee1b3bb319a | 61 | |
EricLew | 0:0ee1b3bb319a | 62 | AREA HEAP, NOINIT, READWRITE, ALIGN=3 |
EricLew | 2:c991e443f67c | 63 | EXPORT __heap_base |
EricLew | 2:c991e443f67c | 64 | EXPORT __heap_limit |
EricLew | 0:0ee1b3bb319a | 65 | __heap_base |
EricLew | 0:0ee1b3bb319a | 66 | Heap_Mem SPACE Heap_Size |
EricLew | 0:0ee1b3bb319a | 67 | __heap_limit |
EricLew | 0:0ee1b3bb319a | 68 | |
EricLew | 0:0ee1b3bb319a | 69 | PRESERVE8 |
EricLew | 0:0ee1b3bb319a | 70 | THUMB |
EricLew | 0:0ee1b3bb319a | 71 | |
EricLew | 0:0ee1b3bb319a | 72 | |
EricLew | 0:0ee1b3bb319a | 73 | ; Vector Table Mapped to Address 0 at Reset |
EricLew | 0:0ee1b3bb319a | 74 | AREA RESET, DATA, READONLY |
EricLew | 0:0ee1b3bb319a | 75 | EXPORT __Vectors |
EricLew | 0:0ee1b3bb319a | 76 | EXPORT __Vectors_End |
EricLew | 0:0ee1b3bb319a | 77 | EXPORT __Vectors_Size |
EricLew | 0:0ee1b3bb319a | 78 | |
EricLew | 0:0ee1b3bb319a | 79 | __Vectors DCD __initial_sp ; Top of Stack |
EricLew | 0:0ee1b3bb319a | 80 | DCD Reset_Handler ; Reset Handler |
EricLew | 0:0ee1b3bb319a | 81 | DCD NMI_Handler ; NMI Handler |
EricLew | 0:0ee1b3bb319a | 82 | DCD HardFault_Handler ; Hard Fault Handler |
EricLew | 0:0ee1b3bb319a | 83 | DCD MemManage_Handler ; MPU Fault Handler |
EricLew | 0:0ee1b3bb319a | 84 | DCD BusFault_Handler ; Bus Fault Handler |
EricLew | 0:0ee1b3bb319a | 85 | DCD UsageFault_Handler ; Usage Fault Handler |
EricLew | 0:0ee1b3bb319a | 86 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 87 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 88 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 89 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 90 | DCD SVC_Handler ; SVCall Handler |
EricLew | 0:0ee1b3bb319a | 91 | DCD DebugMon_Handler ; Debug Monitor Handler |
EricLew | 0:0ee1b3bb319a | 92 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 93 | DCD PendSV_Handler ; PendSV Handler |
EricLew | 0:0ee1b3bb319a | 94 | DCD SysTick_Handler ; SysTick Handler |
EricLew | 0:0ee1b3bb319a | 95 | |
EricLew | 0:0ee1b3bb319a | 96 | ; External Interrupts |
EricLew | 0:0ee1b3bb319a | 97 | DCD WWDG_IRQHandler ; Window WatchDog |
EricLew | 0:0ee1b3bb319a | 98 | DCD PVD_PVM_IRQHandler ; PVD/PVM1/PVM2/PVM3/PVM4 through EXTI Line detection |
EricLew | 0:0ee1b3bb319a | 99 | DCD TAMP_STAMP_IRQHandler ; Tamper and TimeStamps through the EXTI line |
EricLew | 0:0ee1b3bb319a | 100 | DCD RTC_WKUP_IRQHandler ; RTC Wakeup through the EXTI line |
EricLew | 0:0ee1b3bb319a | 101 | DCD FLASH_IRQHandler ; FLASH |
EricLew | 0:0ee1b3bb319a | 102 | DCD RCC_IRQHandler ; RCC |
EricLew | 0:0ee1b3bb319a | 103 | DCD EXTI0_IRQHandler ; EXTI Line0 |
EricLew | 0:0ee1b3bb319a | 104 | DCD EXTI1_IRQHandler ; EXTI Line1 |
EricLew | 0:0ee1b3bb319a | 105 | DCD EXTI2_IRQHandler ; EXTI Line2 |
EricLew | 0:0ee1b3bb319a | 106 | DCD EXTI3_IRQHandler ; EXTI Line3 |
EricLew | 0:0ee1b3bb319a | 107 | DCD EXTI4_IRQHandler ; EXTI Line4 |
EricLew | 0:0ee1b3bb319a | 108 | DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1 |
EricLew | 0:0ee1b3bb319a | 109 | DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2 |
EricLew | 0:0ee1b3bb319a | 110 | DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3 |
EricLew | 0:0ee1b3bb319a | 111 | DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4 |
EricLew | 0:0ee1b3bb319a | 112 | DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5 |
EricLew | 0:0ee1b3bb319a | 113 | DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6 |
EricLew | 0:0ee1b3bb319a | 114 | DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7 |
EricLew | 0:0ee1b3bb319a | 115 | DCD ADC1_2_IRQHandler ; ADC1, ADC2 |
EricLew | 0:0ee1b3bb319a | 116 | DCD CAN1_TX_IRQHandler ; CAN1 TX |
EricLew | 0:0ee1b3bb319a | 117 | DCD CAN1_RX0_IRQHandler ; CAN1 RX0 |
EricLew | 0:0ee1b3bb319a | 118 | DCD CAN1_RX1_IRQHandler ; CAN1 RX1 |
EricLew | 0:0ee1b3bb319a | 119 | DCD CAN1_SCE_IRQHandler ; CAN1 SCE |
EricLew | 0:0ee1b3bb319a | 120 | DCD EXTI9_5_IRQHandler ; External Line[9:5]s |
EricLew | 0:0ee1b3bb319a | 121 | DCD TIM1_BRK_TIM15_IRQHandler ; TIM1 Break and TIM15 |
EricLew | 0:0ee1b3bb319a | 122 | DCD TIM1_UP_TIM16_IRQHandler ; TIM1 Update and TIM16 |
EricLew | 0:0ee1b3bb319a | 123 | DCD TIM1_TRG_COM_TIM17_IRQHandler ; TIM1 Trigger and Commutation and TIM17 |
EricLew | 0:0ee1b3bb319a | 124 | DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare |
EricLew | 0:0ee1b3bb319a | 125 | DCD TIM2_IRQHandler ; TIM2 |
EricLew | 0:0ee1b3bb319a | 126 | DCD TIM3_IRQHandler ; TIM3 |
EricLew | 0:0ee1b3bb319a | 127 | DCD TIM4_IRQHandler ; TIM4 |
EricLew | 0:0ee1b3bb319a | 128 | DCD I2C1_EV_IRQHandler ; I2C1 Event |
EricLew | 0:0ee1b3bb319a | 129 | DCD I2C1_ER_IRQHandler ; I2C1 Error |
EricLew | 0:0ee1b3bb319a | 130 | DCD I2C2_EV_IRQHandler ; I2C2 Event |
EricLew | 0:0ee1b3bb319a | 131 | DCD I2C2_ER_IRQHandler ; I2C2 Error |
EricLew | 0:0ee1b3bb319a | 132 | DCD SPI1_IRQHandler ; SPI1 |
EricLew | 0:0ee1b3bb319a | 133 | DCD SPI2_IRQHandler ; SPI2 |
EricLew | 0:0ee1b3bb319a | 134 | DCD USART1_IRQHandler ; USART1 |
EricLew | 0:0ee1b3bb319a | 135 | DCD USART2_IRQHandler ; USART2 |
EricLew | 0:0ee1b3bb319a | 136 | DCD USART3_IRQHandler ; USART3 |
EricLew | 0:0ee1b3bb319a | 137 | DCD EXTI15_10_IRQHandler ; External Line[15:10] |
EricLew | 0:0ee1b3bb319a | 138 | DCD RTC_Alarm_IRQHandler ; RTC Alarm (A and B) through EXTI Line |
EricLew | 0:0ee1b3bb319a | 139 | DCD DFSDM3_IRQHandler ; SD Filter 3 global Interrupt |
EricLew | 0:0ee1b3bb319a | 140 | DCD TIM8_BRK_IRQHandler ; TIM8 Break Interrupt |
EricLew | 0:0ee1b3bb319a | 141 | DCD TIM8_UP_IRQHandler ; TIM8 Update Interrupt |
EricLew | 0:0ee1b3bb319a | 142 | DCD TIM8_TRG_COM_IRQHandler ; TIM8 Trigger and Commutation Interrupt |
EricLew | 0:0ee1b3bb319a | 143 | DCD TIM8_CC_IRQHandler ; TIM8 Capture Compare Interrupt |
EricLew | 0:0ee1b3bb319a | 144 | DCD ADC3_IRQHandler ; ADC3 global Interrupt |
EricLew | 0:0ee1b3bb319a | 145 | DCD FMC_IRQHandler ; FMC |
EricLew | 0:0ee1b3bb319a | 146 | DCD SDMMC1_IRQHandler ; SDMMC1 |
EricLew | 0:0ee1b3bb319a | 147 | DCD TIM5_IRQHandler ; TIM5 |
EricLew | 0:0ee1b3bb319a | 148 | DCD SPI3_IRQHandler ; SPI3 |
EricLew | 0:0ee1b3bb319a | 149 | DCD UART4_IRQHandler ; UART4 |
EricLew | 0:0ee1b3bb319a | 150 | DCD UART5_IRQHandler ; UART5 |
EricLew | 0:0ee1b3bb319a | 151 | DCD TIM6_DAC_IRQHandler ; TIM6 and DAC1&2 underrun errors |
EricLew | 0:0ee1b3bb319a | 152 | DCD TIM7_IRQHandler ; TIM7 |
EricLew | 0:0ee1b3bb319a | 153 | DCD DMA2_Channel1_IRQHandler ; DMA2 Channel 1 |
EricLew | 0:0ee1b3bb319a | 154 | DCD DMA2_Channel2_IRQHandler ; DMA2 Channel 2 |
EricLew | 0:0ee1b3bb319a | 155 | DCD DMA2_Channel3_IRQHandler ; DMA2 Channel 3 |
EricLew | 0:0ee1b3bb319a | 156 | DCD DMA2_Channel4_IRQHandler ; DMA2 Channel 4 |
EricLew | 0:0ee1b3bb319a | 157 | DCD DMA2_Channel5_IRQHandler ; DMA2 Channel 5 |
EricLew | 0:0ee1b3bb319a | 158 | DCD DFSDM0_IRQHandler ; SD Filter 0 global Interrupt |
EricLew | 0:0ee1b3bb319a | 159 | DCD DFSDM1_IRQHandler ; SD Filter 1 global Interrupt |
EricLew | 0:0ee1b3bb319a | 160 | DCD DFSDM2_IRQHandler ; SD Filter 2 global Interrupt |
EricLew | 0:0ee1b3bb319a | 161 | DCD COMP_IRQHandler ; COMP Interrupt |
EricLew | 0:0ee1b3bb319a | 162 | DCD LPTIM1_IRQHandler ; LP TIM1 interrupt |
EricLew | 0:0ee1b3bb319a | 163 | DCD LPTIM2_IRQHandler ; LP TIM2 interrupt |
EricLew | 0:0ee1b3bb319a | 164 | DCD OTG_FS_IRQHandler ; USB OTG FS |
EricLew | 0:0ee1b3bb319a | 165 | DCD DMA2_Channel6_IRQHandler ; DMA2 Channel 6 |
EricLew | 0:0ee1b3bb319a | 166 | DCD DMA2_Channel7_IRQHandler ; DMA2 Channel 7 |
EricLew | 0:0ee1b3bb319a | 167 | DCD LPUART1_IRQHandler ; LP UART1 interrupt |
EricLew | 0:0ee1b3bb319a | 168 | DCD QUADSPI_IRQHandler ; Quad SPI global interrupt |
EricLew | 0:0ee1b3bb319a | 169 | DCD I2C3_EV_IRQHandler ; I2C3 event |
EricLew | 0:0ee1b3bb319a | 170 | DCD I2C3_ER_IRQHandler ; I2C3 error |
EricLew | 0:0ee1b3bb319a | 171 | DCD SAI1_IRQHandler ; Serial Audio Interface 1 global interrupt |
EricLew | 0:0ee1b3bb319a | 172 | DCD SAI2_IRQHandler ; Serial Audio Interface 2 global interrupt |
EricLew | 0:0ee1b3bb319a | 173 | DCD SWPMI1_IRQHandler ; Serial Wire Interface 1 global interrupt |
EricLew | 0:0ee1b3bb319a | 174 | DCD TSC_IRQHandler ; Touch Sense Controller global interrupt |
EricLew | 0:0ee1b3bb319a | 175 | DCD LCD_IRQHandler ; LCD global interrupt |
EricLew | 0:0ee1b3bb319a | 176 | DCD 0 ; Reserved |
EricLew | 0:0ee1b3bb319a | 177 | DCD RNG_IRQHandler ; RNG global interrupt |
EricLew | 0:0ee1b3bb319a | 178 | DCD FPU_IRQHandler ; FPU |
EricLew | 0:0ee1b3bb319a | 179 | |
EricLew | 0:0ee1b3bb319a | 180 | __Vectors_End |
EricLew | 0:0ee1b3bb319a | 181 | |
EricLew | 0:0ee1b3bb319a | 182 | __Vectors_Size EQU __Vectors_End - __Vectors |
EricLew | 0:0ee1b3bb319a | 183 | |
EricLew | 0:0ee1b3bb319a | 184 | AREA |.text|, CODE, READONLY |
EricLew | 0:0ee1b3bb319a | 185 | |
EricLew | 0:0ee1b3bb319a | 186 | ; Reset handler |
EricLew | 0:0ee1b3bb319a | 187 | Reset_Handler PROC |
EricLew | 0:0ee1b3bb319a | 188 | EXPORT Reset_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 189 | IMPORT SystemInit |
EricLew | 0:0ee1b3bb319a | 190 | IMPORT __main |
EricLew | 0:0ee1b3bb319a | 191 | |
EricLew | 0:0ee1b3bb319a | 192 | LDR R0, =SystemInit |
EricLew | 0:0ee1b3bb319a | 193 | BLX R0 |
EricLew | 0:0ee1b3bb319a | 194 | LDR R0, =__main |
EricLew | 0:0ee1b3bb319a | 195 | BX R0 |
EricLew | 0:0ee1b3bb319a | 196 | ENDP |
EricLew | 0:0ee1b3bb319a | 197 | |
EricLew | 0:0ee1b3bb319a | 198 | ; Dummy Exception Handlers (infinite loops which can be modified) |
EricLew | 0:0ee1b3bb319a | 199 | |
EricLew | 0:0ee1b3bb319a | 200 | NMI_Handler PROC |
EricLew | 0:0ee1b3bb319a | 201 | EXPORT NMI_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 202 | B . |
EricLew | 0:0ee1b3bb319a | 203 | ENDP |
EricLew | 0:0ee1b3bb319a | 204 | HardFault_Handler\ |
EricLew | 0:0ee1b3bb319a | 205 | PROC |
EricLew | 0:0ee1b3bb319a | 206 | EXPORT HardFault_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 207 | B . |
EricLew | 0:0ee1b3bb319a | 208 | ENDP |
EricLew | 0:0ee1b3bb319a | 209 | MemManage_Handler\ |
EricLew | 0:0ee1b3bb319a | 210 | PROC |
EricLew | 0:0ee1b3bb319a | 211 | EXPORT MemManage_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 212 | B . |
EricLew | 0:0ee1b3bb319a | 213 | ENDP |
EricLew | 0:0ee1b3bb319a | 214 | BusFault_Handler\ |
EricLew | 0:0ee1b3bb319a | 215 | PROC |
EricLew | 0:0ee1b3bb319a | 216 | EXPORT BusFault_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 217 | B . |
EricLew | 0:0ee1b3bb319a | 218 | ENDP |
EricLew | 0:0ee1b3bb319a | 219 | UsageFault_Handler\ |
EricLew | 0:0ee1b3bb319a | 220 | PROC |
EricLew | 0:0ee1b3bb319a | 221 | EXPORT UsageFault_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 222 | B . |
EricLew | 0:0ee1b3bb319a | 223 | ENDP |
EricLew | 0:0ee1b3bb319a | 224 | SVC_Handler PROC |
EricLew | 0:0ee1b3bb319a | 225 | EXPORT SVC_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 226 | B . |
EricLew | 0:0ee1b3bb319a | 227 | ENDP |
EricLew | 0:0ee1b3bb319a | 228 | DebugMon_Handler\ |
EricLew | 0:0ee1b3bb319a | 229 | PROC |
EricLew | 0:0ee1b3bb319a | 230 | EXPORT DebugMon_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 231 | B . |
EricLew | 0:0ee1b3bb319a | 232 | ENDP |
EricLew | 0:0ee1b3bb319a | 233 | PendSV_Handler PROC |
EricLew | 0:0ee1b3bb319a | 234 | EXPORT PendSV_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 235 | B . |
EricLew | 0:0ee1b3bb319a | 236 | ENDP |
EricLew | 0:0ee1b3bb319a | 237 | SysTick_Handler PROC |
EricLew | 0:0ee1b3bb319a | 238 | EXPORT SysTick_Handler [WEAK] |
EricLew | 0:0ee1b3bb319a | 239 | B . |
EricLew | 0:0ee1b3bb319a | 240 | ENDP |
EricLew | 0:0ee1b3bb319a | 241 | |
EricLew | 0:0ee1b3bb319a | 242 | Default_Handler PROC |
EricLew | 0:0ee1b3bb319a | 243 | |
EricLew | 0:0ee1b3bb319a | 244 | EXPORT WWDG_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 245 | EXPORT PVD_PVM_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 246 | EXPORT TAMP_STAMP_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 247 | EXPORT RTC_WKUP_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 248 | EXPORT FLASH_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 249 | EXPORT RCC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 250 | EXPORT EXTI0_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 251 | EXPORT EXTI1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 252 | EXPORT EXTI2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 253 | EXPORT EXTI3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 254 | EXPORT EXTI4_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 255 | EXPORT DMA1_Channel1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 256 | EXPORT DMA1_Channel2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 257 | EXPORT DMA1_Channel3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 258 | EXPORT DMA1_Channel4_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 259 | EXPORT DMA1_Channel5_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 260 | EXPORT DMA1_Channel6_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 261 | EXPORT DMA1_Channel7_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 262 | EXPORT ADC1_2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 263 | EXPORT CAN1_TX_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 264 | EXPORT CAN1_RX0_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 265 | EXPORT CAN1_RX1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 266 | EXPORT CAN1_SCE_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 267 | EXPORT EXTI9_5_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 268 | EXPORT TIM1_BRK_TIM15_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 269 | EXPORT TIM1_UP_TIM16_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 270 | EXPORT TIM1_TRG_COM_TIM17_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 271 | EXPORT TIM1_CC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 272 | EXPORT TIM2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 273 | EXPORT TIM3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 274 | EXPORT TIM4_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 275 | EXPORT I2C1_EV_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 276 | EXPORT I2C1_ER_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 277 | EXPORT I2C2_EV_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 278 | EXPORT I2C2_ER_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 279 | EXPORT SPI1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 280 | EXPORT SPI2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 281 | EXPORT USART1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 282 | EXPORT USART2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 283 | EXPORT USART3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 284 | EXPORT EXTI15_10_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 285 | EXPORT RTC_Alarm_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 286 | EXPORT DFSDM3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 287 | EXPORT TIM8_BRK_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 288 | EXPORT TIM8_UP_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 289 | EXPORT TIM8_TRG_COM_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 290 | EXPORT TIM8_CC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 291 | EXPORT ADC3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 292 | EXPORT FMC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 293 | EXPORT SDMMC1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 294 | EXPORT TIM5_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 295 | EXPORT SPI3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 296 | EXPORT UART4_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 297 | EXPORT UART5_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 298 | EXPORT TIM6_DAC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 299 | EXPORT TIM7_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 300 | EXPORT DMA2_Channel1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 301 | EXPORT DMA2_Channel2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 302 | EXPORT DMA2_Channel3_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 303 | EXPORT DMA2_Channel4_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 304 | EXPORT DMA2_Channel5_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 305 | EXPORT DFSDM0_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 306 | EXPORT DFSDM1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 307 | EXPORT DFSDM2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 308 | EXPORT COMP_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 309 | EXPORT LPTIM1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 310 | EXPORT LPTIM2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 311 | EXPORT OTG_FS_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 312 | EXPORT DMA2_Channel6_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 313 | EXPORT DMA2_Channel7_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 314 | EXPORT LPUART1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 315 | EXPORT QUADSPI_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 316 | EXPORT I2C3_EV_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 317 | EXPORT I2C3_ER_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 318 | EXPORT SAI1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 319 | EXPORT SAI2_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 320 | EXPORT SWPMI1_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 321 | EXPORT TSC_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 322 | EXPORT LCD_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 323 | EXPORT RNG_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 324 | EXPORT FPU_IRQHandler [WEAK] |
EricLew | 0:0ee1b3bb319a | 325 | |
EricLew | 0:0ee1b3bb319a | 326 | WWDG_IRQHandler |
EricLew | 0:0ee1b3bb319a | 327 | PVD_PVM_IRQHandler |
EricLew | 0:0ee1b3bb319a | 328 | TAMP_STAMP_IRQHandler |
EricLew | 0:0ee1b3bb319a | 329 | RTC_WKUP_IRQHandler |
EricLew | 0:0ee1b3bb319a | 330 | FLASH_IRQHandler |
EricLew | 0:0ee1b3bb319a | 331 | RCC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 332 | EXTI0_IRQHandler |
EricLew | 0:0ee1b3bb319a | 333 | EXTI1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 334 | EXTI2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 335 | EXTI3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 336 | EXTI4_IRQHandler |
EricLew | 0:0ee1b3bb319a | 337 | DMA1_Channel1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 338 | DMA1_Channel2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 339 | DMA1_Channel3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 340 | DMA1_Channel4_IRQHandler |
EricLew | 0:0ee1b3bb319a | 341 | DMA1_Channel5_IRQHandler |
EricLew | 0:0ee1b3bb319a | 342 | DMA1_Channel6_IRQHandler |
EricLew | 0:0ee1b3bb319a | 343 | DMA1_Channel7_IRQHandler |
EricLew | 0:0ee1b3bb319a | 344 | ADC1_2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 345 | CAN1_TX_IRQHandler |
EricLew | 0:0ee1b3bb319a | 346 | CAN1_RX0_IRQHandler |
EricLew | 0:0ee1b3bb319a | 347 | CAN1_RX1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 348 | CAN1_SCE_IRQHandler |
EricLew | 0:0ee1b3bb319a | 349 | EXTI9_5_IRQHandler |
EricLew | 0:0ee1b3bb319a | 350 | TIM1_BRK_TIM15_IRQHandler |
EricLew | 0:0ee1b3bb319a | 351 | TIM1_UP_TIM16_IRQHandler |
EricLew | 0:0ee1b3bb319a | 352 | TIM1_TRG_COM_TIM17_IRQHandler |
EricLew | 0:0ee1b3bb319a | 353 | TIM1_CC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 354 | TIM2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 355 | TIM3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 356 | TIM4_IRQHandler |
EricLew | 0:0ee1b3bb319a | 357 | I2C1_EV_IRQHandler |
EricLew | 0:0ee1b3bb319a | 358 | I2C1_ER_IRQHandler |
EricLew | 0:0ee1b3bb319a | 359 | I2C2_EV_IRQHandler |
EricLew | 0:0ee1b3bb319a | 360 | I2C2_ER_IRQHandler |
EricLew | 0:0ee1b3bb319a | 361 | SPI1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 362 | SPI2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 363 | USART1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 364 | USART2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 365 | USART3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 366 | EXTI15_10_IRQHandler |
EricLew | 0:0ee1b3bb319a | 367 | RTC_Alarm_IRQHandler |
EricLew | 0:0ee1b3bb319a | 368 | DFSDM3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 369 | TIM8_BRK_IRQHandler |
EricLew | 0:0ee1b3bb319a | 370 | TIM8_UP_IRQHandler |
EricLew | 0:0ee1b3bb319a | 371 | TIM8_TRG_COM_IRQHandler |
EricLew | 0:0ee1b3bb319a | 372 | TIM8_CC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 373 | ADC3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 374 | FMC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 375 | SDMMC1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 376 | TIM5_IRQHandler |
EricLew | 0:0ee1b3bb319a | 377 | SPI3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 378 | UART4_IRQHandler |
EricLew | 0:0ee1b3bb319a | 379 | UART5_IRQHandler |
EricLew | 0:0ee1b3bb319a | 380 | TIM6_DAC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 381 | TIM7_IRQHandler |
EricLew | 0:0ee1b3bb319a | 382 | DMA2_Channel1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 383 | DMA2_Channel2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 384 | DMA2_Channel3_IRQHandler |
EricLew | 0:0ee1b3bb319a | 385 | DMA2_Channel4_IRQHandler |
EricLew | 0:0ee1b3bb319a | 386 | DMA2_Channel5_IRQHandler |
EricLew | 0:0ee1b3bb319a | 387 | DFSDM0_IRQHandler |
EricLew | 0:0ee1b3bb319a | 388 | DFSDM1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 389 | DFSDM2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 390 | COMP_IRQHandler |
EricLew | 0:0ee1b3bb319a | 391 | LPTIM1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 392 | LPTIM2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 393 | OTG_FS_IRQHandler |
EricLew | 0:0ee1b3bb319a | 394 | DMA2_Channel6_IRQHandler |
EricLew | 0:0ee1b3bb319a | 395 | DMA2_Channel7_IRQHandler |
EricLew | 0:0ee1b3bb319a | 396 | LPUART1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 397 | QUADSPI_IRQHandler |
EricLew | 0:0ee1b3bb319a | 398 | I2C3_EV_IRQHandler |
EricLew | 0:0ee1b3bb319a | 399 | I2C3_ER_IRQHandler |
EricLew | 0:0ee1b3bb319a | 400 | SAI1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 401 | SAI2_IRQHandler |
EricLew | 0:0ee1b3bb319a | 402 | SWPMI1_IRQHandler |
EricLew | 0:0ee1b3bb319a | 403 | TSC_IRQHandler |
EricLew | 0:0ee1b3bb319a | 404 | LCD_IRQHandler |
EricLew | 0:0ee1b3bb319a | 405 | RNG_IRQHandler |
EricLew | 0:0ee1b3bb319a | 406 | FPU_IRQHandler |
EricLew | 0:0ee1b3bb319a | 407 | |
EricLew | 0:0ee1b3bb319a | 408 | B . |
EricLew | 0:0ee1b3bb319a | 409 | |
EricLew | 0:0ee1b3bb319a | 410 | ENDP |
EricLew | 0:0ee1b3bb319a | 411 | |
EricLew | 0:0ee1b3bb319a | 412 | ALIGN |
EricLew | 0:0ee1b3bb319a | 413 | |
EricLew | 0:0ee1b3bb319a | 414 | ;******************************************************************************* |
EricLew | 0:0ee1b3bb319a | 415 | ; User Stack and Heap initialization |
EricLew | 0:0ee1b3bb319a | 416 | ;******************************************************************************* |
EricLew | 2:c991e443f67c | 417 | ; IF :DEF:TARGET_L476RG |
EricLew | 2:c991e443f67c | 418 | ; |
EricLew | 2:c991e443f67c | 419 | ; EXPORT __initial_sp |
EricLew | 2:c991e443f67c | 420 | ; EXPORT __heap_base |
EricLew | 2:c991e443f67c | 421 | ; EXPORT __heap_limit |
EricLew | 2:c991e443f67c | 422 | ; |
EricLew | 2:c991e443f67c | 423 | ; ELSE |
EricLew | 2:c991e443f67c | 424 | ; |
EricLew | 2:c991e443f67c | 425 | ; IMPORT __use_two_region_memory |
EricLew | 2:c991e443f67c | 426 | ; EXPORT __user_initial_stackheap |
EricLew | 2:c991e443f67c | 427 | ; |
EricLew | 2:c991e443f67c | 428 | ;__user_initial_stackheap |
EricLew | 2:c991e443f67c | 429 | ; |
EricLew | 2:c991e443f67c | 430 | ; LDR R0, = Heap_Mem |
EricLew | 2:c991e443f67c | 431 | ; LDR R1, =(Stack_Mem + Stack_Size) |
EricLew | 2:c991e443f67c | 432 | ; LDR R2, = (Heap_Mem + Heap_Size) |
EricLew | 2:c991e443f67c | 433 | ; LDR R3, = Stack_Mem |
EricLew | 2:c991e443f67c | 434 | ; BX LR |
EricLew | 2:c991e443f67c | 435 | ; |
EricLew | 2:c991e443f67c | 436 | ; ALIGN |
EricLew | 2:c991e443f67c | 437 | ; |
EricLew | 2:c991e443f67c | 438 | ; ENDIF |
EricLew | 2:c991e443f67c | 439 | ; |
EricLew | 2:c991e443f67c | 440 | END |
EricLew | 0:0ee1b3bb319a | 441 | |
EricLew | 0:0ee1b3bb319a | 442 | ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE***** |
EricLew | 0:0ee1b3bb319a | 443 |