mbed library sources

Dependents:   bare

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Jan 27 14:30:07 2014 +0000
Revision:
76:aeb1df146756
Synchronized with git revision a31ec9c5f7bcb5c8a1b2eced103f6a1dfa921abd

Full URL: https://github.com/mbedmicro/mbed/commit/a31ec9c5f7bcb5c8a1b2eced103f6a1dfa921abd/

Add NUCLEO_L152RE

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 76:aeb1df146756 1 ;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
mbed_official 76:aeb1df146756 2 ;* File Name : startup_stm32f030.s
mbed_official 76:aeb1df146756 3 ;* Author : MCD Application Team
mbed_official 76:aeb1df146756 4 ;* Version : V1.3.1
mbed_official 76:aeb1df146756 5 ;* Date : 17-January-2014
mbed_official 76:aeb1df146756 6 ;* Description : STM32F030 devices vector table for MDK-ARM toolchain.
mbed_official 76:aeb1df146756 7 ;* This module performs:
mbed_official 76:aeb1df146756 8 ;* - Set the initial SP
mbed_official 76:aeb1df146756 9 ;* - Set the initial PC == Reset_Handler
mbed_official 76:aeb1df146756 10 ;* - Set the vector table entries with the exceptions ISR address
mbed_official 76:aeb1df146756 11 ;* - Configure the system clock
mbed_official 76:aeb1df146756 12 ;* - Branches to __main in the C library (which eventually
mbed_official 76:aeb1df146756 13 ;* calls main()).
mbed_official 76:aeb1df146756 14 ;* After Reset the CortexM0 processor is in Thread mode,
mbed_official 76:aeb1df146756 15 ;* priority is Privileged, and the Stack is set to Main.
mbed_official 76:aeb1df146756 16 ;* <<< Use Configuration Wizard in Context Menu >>>
mbed_official 76:aeb1df146756 17 ;*******************************************************************************
mbed_official 76:aeb1df146756 18 ; @attention
mbed_official 76:aeb1df146756 19 ;
mbed_official 76:aeb1df146756 20 ; Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
mbed_official 76:aeb1df146756 21 ; You may not use this file except in compliance with the License.
mbed_official 76:aeb1df146756 22 ; You may obtain a copy of the License at:
mbed_official 76:aeb1df146756 23 ;
mbed_official 76:aeb1df146756 24 ; http://www.st.com/software_license_agreement_liberty_v2
mbed_official 76:aeb1df146756 25 ;
mbed_official 76:aeb1df146756 26 ; Unless required by applicable law or agreed to in writing, software
mbed_official 76:aeb1df146756 27 ; distributed under the License is distributed on an "AS IS" BASIS,
mbed_official 76:aeb1df146756 28 ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbed_official 76:aeb1df146756 29 ; See the License for the specific language governing permissions and
mbed_official 76:aeb1df146756 30 ; limitations under the License.
mbed_official 76:aeb1df146756 31 ;
mbed_official 76:aeb1df146756 32 ;*******************************************************************************
mbed_official 76:aeb1df146756 33 ;
mbed_official 76:aeb1df146756 34 ; Amount of memory (in bytes) allocated for Stack
mbed_official 76:aeb1df146756 35 ; Tailor this value to your application needs
mbed_official 76:aeb1df146756 36 ; <h> Stack Configuration
mbed_official 76:aeb1df146756 37 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 76:aeb1df146756 38 ; </h>
mbed_official 76:aeb1df146756 39
mbed_official 76:aeb1df146756 40 Stack_Size EQU 0x00000400
mbed_official 76:aeb1df146756 41
mbed_official 76:aeb1df146756 42 AREA STACK, NOINIT, READWRITE, ALIGN=3
mbed_official 76:aeb1df146756 43 Stack_Mem SPACE Stack_Size
mbed_official 76:aeb1df146756 44 __initial_sp
mbed_official 76:aeb1df146756 45
mbed_official 76:aeb1df146756 46
mbed_official 76:aeb1df146756 47 ; <h> Heap Configuration
mbed_official 76:aeb1df146756 48 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 76:aeb1df146756 49 ; </h>
mbed_official 76:aeb1df146756 50
mbed_official 76:aeb1df146756 51 Heap_Size EQU 0x00000200
mbed_official 76:aeb1df146756 52
mbed_official 76:aeb1df146756 53 AREA HEAP, NOINIT, READWRITE, ALIGN=3
mbed_official 76:aeb1df146756 54 __heap_base
mbed_official 76:aeb1df146756 55 Heap_Mem SPACE Heap_Size
mbed_official 76:aeb1df146756 56 __heap_limit
mbed_official 76:aeb1df146756 57
mbed_official 76:aeb1df146756 58 PRESERVE8
mbed_official 76:aeb1df146756 59 THUMB
mbed_official 76:aeb1df146756 60
mbed_official 76:aeb1df146756 61
mbed_official 76:aeb1df146756 62 ; Vector Table Mapped to Address 0 at Reset
mbed_official 76:aeb1df146756 63 AREA RESET, DATA, READONLY
mbed_official 76:aeb1df146756 64 EXPORT __Vectors
mbed_official 76:aeb1df146756 65 EXPORT __Vectors_End
mbed_official 76:aeb1df146756 66 EXPORT __Vectors_Size
mbed_official 76:aeb1df146756 67
mbed_official 76:aeb1df146756 68 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 76:aeb1df146756 69 DCD Reset_Handler ; Reset Handler
mbed_official 76:aeb1df146756 70 DCD NMI_Handler ; NMI Handler
mbed_official 76:aeb1df146756 71 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 76:aeb1df146756 72 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 73 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 74 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 75 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 76 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 77 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 78 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 79 DCD SVC_Handler ; SVCall Handler
mbed_official 76:aeb1df146756 80 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 81 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 82 DCD PendSV_Handler ; PendSV Handler
mbed_official 76:aeb1df146756 83 DCD SysTick_Handler ; SysTick Handler
mbed_official 76:aeb1df146756 84
mbed_official 76:aeb1df146756 85 ; External Interrupts
mbed_official 76:aeb1df146756 86 DCD WWDG_IRQHandler ; Window Watchdog
mbed_official 76:aeb1df146756 87 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 88 DCD RTC_IRQHandler ; RTC through EXTI Line
mbed_official 76:aeb1df146756 89 DCD FLASH_IRQHandler ; FLASH
mbed_official 76:aeb1df146756 90 DCD RCC_IRQHandler ; RCC
mbed_official 76:aeb1df146756 91 DCD EXTI0_1_IRQHandler ; EXTI Line 0 and 1
mbed_official 76:aeb1df146756 92 DCD EXTI2_3_IRQHandler ; EXTI Line 2 and 3
mbed_official 76:aeb1df146756 93 DCD EXTI4_15_IRQHandler ; EXTI Line 4 to 15
mbed_official 76:aeb1df146756 94 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 95 DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
mbed_official 76:aeb1df146756 96 DCD DMA1_Channel2_3_IRQHandler ; DMA1 Channel 2 and Channel 3
mbed_official 76:aeb1df146756 97 DCD DMA1_Channel4_5_IRQHandler ; DMA1 Channel 4 and Channel 5
mbed_official 76:aeb1df146756 98 DCD ADC1_IRQHandler ; ADC1
mbed_official 76:aeb1df146756 99 DCD TIM1_BRK_UP_TRG_COM_IRQHandler ; TIM1 Break, Update, Trigger and Commutation
mbed_official 76:aeb1df146756 100 DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
mbed_official 76:aeb1df146756 101 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 102 DCD TIM3_IRQHandler ; TIM3
mbed_official 76:aeb1df146756 103 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 104 DCD 0 ; Reserved
mbed_official 76:aeb1df146756 105 DCD TIM14_IRQHandler ; TIM14
mbed_official 76:aeb1df146756 106 DCD TIM15_IRQHandler ; TIM15
mbed_official 76:aeb1df146756 107 DCD TIM16_IRQHandler ; TIM16
mbed_official 76:aeb1df146756 108 DCD TIM17_IRQHandler ; TIM17
mbed_official 76:aeb1df146756 109 DCD I2C1_IRQHandler ; I2C1
mbed_official 76:aeb1df146756 110 DCD I2C2_IRQHandler ; I2C2
mbed_official 76:aeb1df146756 111 DCD SPI1_IRQHandler ; SPI1
mbed_official 76:aeb1df146756 112 DCD SPI2_IRQHandler ; SPI2
mbed_official 76:aeb1df146756 113 DCD USART1_IRQHandler ; USART1
mbed_official 76:aeb1df146756 114 DCD USART2_IRQHandler ; USART2
mbed_official 76:aeb1df146756 115
mbed_official 76:aeb1df146756 116 __Vectors_End
mbed_official 76:aeb1df146756 117
mbed_official 76:aeb1df146756 118 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 76:aeb1df146756 119
mbed_official 76:aeb1df146756 120 AREA |.text|, CODE, READONLY
mbed_official 76:aeb1df146756 121
mbed_official 76:aeb1df146756 122 ; Reset handler routine
mbed_official 76:aeb1df146756 123 Reset_Handler PROC
mbed_official 76:aeb1df146756 124 EXPORT Reset_Handler [WEAK]
mbed_official 76:aeb1df146756 125 IMPORT __main
mbed_official 76:aeb1df146756 126 IMPORT SystemInit
mbed_official 76:aeb1df146756 127 LDR R0, =SystemInit
mbed_official 76:aeb1df146756 128 BLX R0
mbed_official 76:aeb1df146756 129 LDR R0, =__main
mbed_official 76:aeb1df146756 130 BX R0
mbed_official 76:aeb1df146756 131 ENDP
mbed_official 76:aeb1df146756 132
mbed_official 76:aeb1df146756 133 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 76:aeb1df146756 134
mbed_official 76:aeb1df146756 135 NMI_Handler PROC
mbed_official 76:aeb1df146756 136 EXPORT NMI_Handler [WEAK]
mbed_official 76:aeb1df146756 137 B .
mbed_official 76:aeb1df146756 138 ENDP
mbed_official 76:aeb1df146756 139 HardFault_Handler\
mbed_official 76:aeb1df146756 140 PROC
mbed_official 76:aeb1df146756 141 EXPORT HardFault_Handler [WEAK]
mbed_official 76:aeb1df146756 142 B .
mbed_official 76:aeb1df146756 143 ENDP
mbed_official 76:aeb1df146756 144 SVC_Handler PROC
mbed_official 76:aeb1df146756 145 EXPORT SVC_Handler [WEAK]
mbed_official 76:aeb1df146756 146 B .
mbed_official 76:aeb1df146756 147 ENDP
mbed_official 76:aeb1df146756 148 PendSV_Handler PROC
mbed_official 76:aeb1df146756 149 EXPORT PendSV_Handler [WEAK]
mbed_official 76:aeb1df146756 150 B .
mbed_official 76:aeb1df146756 151 ENDP
mbed_official 76:aeb1df146756 152 SysTick_Handler PROC
mbed_official 76:aeb1df146756 153 EXPORT SysTick_Handler [WEAK]
mbed_official 76:aeb1df146756 154 B .
mbed_official 76:aeb1df146756 155 ENDP
mbed_official 76:aeb1df146756 156
mbed_official 76:aeb1df146756 157 Default_Handler PROC
mbed_official 76:aeb1df146756 158
mbed_official 76:aeb1df146756 159 EXPORT WWDG_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 160 EXPORT RTC_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 161 EXPORT FLASH_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 162 EXPORT RCC_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 163 EXPORT EXTI0_1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 164 EXPORT EXTI2_3_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 165 EXPORT EXTI4_15_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 166 EXPORT DMA1_Channel1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 167 EXPORT DMA1_Channel2_3_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 168 EXPORT DMA1_Channel4_5_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 169 EXPORT ADC1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 170 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 171 EXPORT TIM1_CC_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 172 EXPORT TIM3_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 173 EXPORT TIM14_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 174 EXPORT TIM15_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 175 EXPORT TIM16_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 176 EXPORT TIM17_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 177 EXPORT I2C1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 178 EXPORT I2C2_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 179 EXPORT SPI1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 180 EXPORT SPI2_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 181 EXPORT USART1_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 182 EXPORT USART2_IRQHandler [WEAK]
mbed_official 76:aeb1df146756 183
mbed_official 76:aeb1df146756 184
mbed_official 76:aeb1df146756 185 WWDG_IRQHandler
mbed_official 76:aeb1df146756 186 RTC_IRQHandler
mbed_official 76:aeb1df146756 187 FLASH_IRQHandler
mbed_official 76:aeb1df146756 188 RCC_IRQHandler
mbed_official 76:aeb1df146756 189 EXTI0_1_IRQHandler
mbed_official 76:aeb1df146756 190 EXTI2_3_IRQHandler
mbed_official 76:aeb1df146756 191 EXTI4_15_IRQHandler
mbed_official 76:aeb1df146756 192 DMA1_Channel1_IRQHandler
mbed_official 76:aeb1df146756 193 DMA1_Channel2_3_IRQHandler
mbed_official 76:aeb1df146756 194 DMA1_Channel4_5_IRQHandler
mbed_official 76:aeb1df146756 195 ADC1_IRQHandler
mbed_official 76:aeb1df146756 196 TIM1_BRK_UP_TRG_COM_IRQHandler
mbed_official 76:aeb1df146756 197 TIM1_CC_IRQHandler
mbed_official 76:aeb1df146756 198 TIM3_IRQHandler
mbed_official 76:aeb1df146756 199 TIM14_IRQHandler
mbed_official 76:aeb1df146756 200 TIM15_IRQHandler
mbed_official 76:aeb1df146756 201 TIM16_IRQHandler
mbed_official 76:aeb1df146756 202 TIM17_IRQHandler
mbed_official 76:aeb1df146756 203 I2C1_IRQHandler
mbed_official 76:aeb1df146756 204 I2C2_IRQHandler
mbed_official 76:aeb1df146756 205 SPI1_IRQHandler
mbed_official 76:aeb1df146756 206 SPI2_IRQHandler
mbed_official 76:aeb1df146756 207 USART1_IRQHandler
mbed_official 76:aeb1df146756 208 USART2_IRQHandler
mbed_official 76:aeb1df146756 209
mbed_official 76:aeb1df146756 210 B .
mbed_official 76:aeb1df146756 211
mbed_official 76:aeb1df146756 212 ENDP
mbed_official 76:aeb1df146756 213
mbed_official 76:aeb1df146756 214 ALIGN
mbed_official 76:aeb1df146756 215
mbed_official 76:aeb1df146756 216 ;*******************************************************************************
mbed_official 76:aeb1df146756 217 ; User Stack and Heap initialization
mbed_official 76:aeb1df146756 218 ;*******************************************************************************
mbed_official 76:aeb1df146756 219 IF :DEF:__MICROLIB
mbed_official 76:aeb1df146756 220
mbed_official 76:aeb1df146756 221 EXPORT __initial_sp
mbed_official 76:aeb1df146756 222 EXPORT __heap_base
mbed_official 76:aeb1df146756 223 EXPORT __heap_limit
mbed_official 76:aeb1df146756 224
mbed_official 76:aeb1df146756 225 ELSE
mbed_official 76:aeb1df146756 226
mbed_official 76:aeb1df146756 227 IMPORT __use_two_region_memory
mbed_official 76:aeb1df146756 228 EXPORT __user_initial_stackheap
mbed_official 76:aeb1df146756 229
mbed_official 76:aeb1df146756 230 __user_initial_stackheap
mbed_official 76:aeb1df146756 231
mbed_official 76:aeb1df146756 232 LDR R0, = Heap_Mem
mbed_official 76:aeb1df146756 233 LDR R1, =(Stack_Mem + Stack_Size)
mbed_official 76:aeb1df146756 234 LDR R2, = (Heap_Mem + Heap_Size)
mbed_official 76:aeb1df146756 235 LDR R3, = Stack_Mem
mbed_official 76:aeb1df146756 236 BX LR
mbed_official 76:aeb1df146756 237
mbed_official 76:aeb1df146756 238 ALIGN
mbed_official 76:aeb1df146756 239
mbed_official 76:aeb1df146756 240 ENDIF
mbed_official 76:aeb1df146756 241
mbed_official 76:aeb1df146756 242 END
mbed_official 76:aeb1df146756 243
mbed_official 76:aeb1df146756 244 ;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****