mbed library sources for small microcontrollers such as STM32F050F6P6 (with 4 kB RAM)

Dependents:   STM32F031_blink_LED_1

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Feb 16 08:45:06 2015 +0000
Revision:
475:a5319011ffc3
Synchronized with git revision b5fbcc75aacd176bb35bcea2506ed75cb1dbcacb

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

LPC11U68 build support extended to ARM toolchain, uvision export template added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 475:a5319011ffc3 1 ;/**************************************************************************//**
mbed_official 475:a5319011ffc3 2 ; * @file startup_LPC11U6x.s
mbed_official 475:a5319011ffc3 3 ; * @brief CMSIS Cortex-M0+ Core Device Startup File for
mbed_official 475:a5319011ffc3 4 ; * NXP LPC11U6x Device Series
mbed_official 475:a5319011ffc3 5 ; * @version V1.00
mbed_official 475:a5319011ffc3 6 ; * @date 22. October 2013
mbed_official 475:a5319011ffc3 7 ; *
mbed_official 475:a5319011ffc3 8 ; * @note
mbed_official 475:a5319011ffc3 9 ; * Copyright (C) 2013 ARM Limited. All rights reserved.
mbed_official 475:a5319011ffc3 10 ; *
mbed_official 475:a5319011ffc3 11 ; * @par
mbed_official 475:a5319011ffc3 12 ; * ARM Limited (ARM) is supplying this software for use with Cortex-M
mbed_official 475:a5319011ffc3 13 ; * processor based microcontrollers. This file can be freely distributed
mbed_official 475:a5319011ffc3 14 ; * within development tools that are supporting such ARM based processors.
mbed_official 475:a5319011ffc3 15 ; *
mbed_official 475:a5319011ffc3 16 ; * @par
mbed_official 475:a5319011ffc3 17 ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
mbed_official 475:a5319011ffc3 18 ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
mbed_official 475:a5319011ffc3 19 ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
mbed_official 475:a5319011ffc3 20 ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
mbed_official 475:a5319011ffc3 21 ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
mbed_official 475:a5319011ffc3 22 ; *
mbed_official 475:a5319011ffc3 23 ; ******************************************************************************/
mbed_official 475:a5319011ffc3 24
mbed_official 475:a5319011ffc3 25 ; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------
mbed_official 475:a5319011ffc3 26
mbed_official 475:a5319011ffc3 27 ; <h> Stack Configuration
mbed_official 475:a5319011ffc3 28 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 475:a5319011ffc3 29 ; </h>
mbed_official 475:a5319011ffc3 30
mbed_official 475:a5319011ffc3 31 AREA STACK, NOINIT, READWRITE, ALIGN=3
mbed_official 475:a5319011ffc3 32 EXPORT __initial_sp
mbed_official 475:a5319011ffc3 33
mbed_official 475:a5319011ffc3 34 __initial_sp EQU 0x10008000 ; Top of RAM from LPC1U68
mbed_official 475:a5319011ffc3 35
mbed_official 475:a5319011ffc3 36
mbed_official 475:a5319011ffc3 37 ; <h> Heap Configuration
mbed_official 475:a5319011ffc3 38 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 475:a5319011ffc3 39 ; </h>
mbed_official 475:a5319011ffc3 40
mbed_official 475:a5319011ffc3 41 Heap_Size EQU 0x00000000
mbed_official 475:a5319011ffc3 42
mbed_official 475:a5319011ffc3 43 AREA HEAP, NOINIT, READWRITE, ALIGN=3
mbed_official 475:a5319011ffc3 44 __heap_base
mbed_official 475:a5319011ffc3 45 Heap_Mem SPACE Heap_Size
mbed_official 475:a5319011ffc3 46 __heap_limit
mbed_official 475:a5319011ffc3 47
mbed_official 475:a5319011ffc3 48
mbed_official 475:a5319011ffc3 49 PRESERVE8
mbed_official 475:a5319011ffc3 50 THUMB
mbed_official 475:a5319011ffc3 51
mbed_official 475:a5319011ffc3 52
mbed_official 475:a5319011ffc3 53 ; Vector Table Mapped to Address 0 at Reset
mbed_official 475:a5319011ffc3 54
mbed_official 475:a5319011ffc3 55 AREA RESET, DATA, READONLY
mbed_official 475:a5319011ffc3 56 EXPORT __Vectors
mbed_official 475:a5319011ffc3 57
mbed_official 475:a5319011ffc3 58 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 475:a5319011ffc3 59 DCD Reset_Handler ; Reset Handler
mbed_official 475:a5319011ffc3 60 DCD NMI_Handler ; NMI Handler
mbed_official 475:a5319011ffc3 61 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 475:a5319011ffc3 62 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 63 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 64 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 65 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 66 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 67 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 68 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 69 DCD SVC_Handler ; SVCall Handler
mbed_official 475:a5319011ffc3 70 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 71 DCD 0 ; Reserved
mbed_official 475:a5319011ffc3 72 DCD PendSV_Handler ; PendSV Handler
mbed_official 475:a5319011ffc3 73 DCD SysTick_Handler ; SysTick Handler
mbed_official 475:a5319011ffc3 74
mbed_official 475:a5319011ffc3 75 ; External Interrupts
mbed_official 475:a5319011ffc3 76 DCD PIN_INT0_IRQHandler ; 16+ 0 GPIO pin interrupt 0
mbed_official 475:a5319011ffc3 77 DCD PIN_INT1_IRQHandler ; 16+ 1 GPIO pin interrupt 1
mbed_official 475:a5319011ffc3 78 DCD PIN_INT2_IRQHandler ; 16+ 2 GPIO pin interrupt 2
mbed_official 475:a5319011ffc3 79 DCD PIN_INT3_IRQHandler ; 16+ 3 GPIO pin interrupt 3
mbed_official 475:a5319011ffc3 80 DCD PIN_INT4_IRQHandler ; 16+ 4 GPIO pin interrupt 4
mbed_official 475:a5319011ffc3 81 DCD PIN_INT5_IRQHandler ; 16+ 5 GPIO pin interrupt 5
mbed_official 475:a5319011ffc3 82 DCD PIN_INT6_IRQHandler ; 16+ 6 GPIO pin interrupt 6
mbed_official 475:a5319011ffc3 83 DCD PIN_INT7_IRQHandler ; 16+ 7 GPIO pin interrupt 7
mbed_official 475:a5319011ffc3 84 DCD GINT0_IRQHandler ; 16+ 8 GPIO GROUP0 interrupt
mbed_official 475:a5319011ffc3 85 DCD GINT1_IRQHandler ; 16+ 9 GPIO GROUP1 interrupt
mbed_official 475:a5319011ffc3 86 DCD I2C1_IRQHandler ; 16+10 I2C1 interrupt
mbed_official 475:a5319011ffc3 87 DCD USART1_4_IRQHandler ; 16+11 Combined USART1 and USART4 interrupts
mbed_official 475:a5319011ffc3 88 DCD USART2_3_IRQHandler ; 16+12 Combined USART2 and USART3 interrupts
mbed_official 475:a5319011ffc3 89 DCD SCT0_1_IRQHandler ; 16+13 Combined SCT0 and SCT1 interrupts
mbed_official 475:a5319011ffc3 90 DCD SSP1_IRQHandler ; 16+14 SSP1 interrupt
mbed_official 475:a5319011ffc3 91 DCD I2C0_IRQHandler ; 16+15 I2C0 interrupt
mbed_official 475:a5319011ffc3 92 DCD CT16B0_IRQHandler ; 16+16 CT16B0 interrupt
mbed_official 475:a5319011ffc3 93 DCD CT16B1_IRQHandler ; 16+17 CT16B1 interrupt
mbed_official 475:a5319011ffc3 94 DCD CT32B0_IRQHandler ; 16+18 CT32B0 interrupt
mbed_official 475:a5319011ffc3 95 DCD CT32B1_IRQHandler ; 16+19 CT32B1 interrupt
mbed_official 475:a5319011ffc3 96 DCD SSP0_IRQHandler ; 16+20 SSP0 interrupt
mbed_official 475:a5319011ffc3 97 DCD USART0_IRQHandler ; 16+21 USART0 interrupt
mbed_official 475:a5319011ffc3 98 DCD USB_IRQHandler ; 16+22 USB interrupt
mbed_official 475:a5319011ffc3 99 DCD USB_FIQ_IRQHandler ; 16+23 USB_FIQ interrupt
mbed_official 475:a5319011ffc3 100 DCD ADC_A_IRQHandler ; 16+24 Combined ADC_A end-of-sequence A and threshold crossing interrupts
mbed_official 475:a5319011ffc3 101 DCD RTC_IRQHandler ; 16+25 RTC interrupt
mbed_official 475:a5319011ffc3 102 DCD BOD_WDT_IRQHandler ; 16+26 Combined BOD and WWDT interrupt
mbed_official 475:a5319011ffc3 103 DCD FLASH_IRQHandler ; 16+27 Combined flash and EEPROM controller interrupts
mbed_official 475:a5319011ffc3 104 DCD DMA_IRQHandler ; 16+28 DMA interrupt
mbed_official 475:a5319011ffc3 105 DCD ADC_B_IRQHandler ; 16+29 Combined ADC_A end-of-sequence A and threshold crossing interrupts
mbed_official 475:a5319011ffc3 106 DCD USBWAKEUP_IRQHandler ; 16+30 USB_WAKEUP interrupt
mbed_official 475:a5319011ffc3 107 DCD 0 ; 16+31 Reserved
mbed_official 475:a5319011ffc3 108
mbed_official 475:a5319011ffc3 109 ; <h> Code Read Protection
mbed_official 475:a5319011ffc3 110 ; <o> Code Read Protection <0xFFFFFFFF=>CRP Disabled
mbed_official 475:a5319011ffc3 111 ; <0x12345678=>CRP Level 1
mbed_official 475:a5319011ffc3 112 ; <0x87654321=>CRP Level 2
mbed_official 475:a5319011ffc3 113 ; <0x43218765=>CRP Level 3 (ARE YOU SURE?)
mbed_official 475:a5319011ffc3 114 ; <0x4E697370=>NO ISP (ARE YOU SURE?)
mbed_official 475:a5319011ffc3 115 ; </h>
mbed_official 475:a5319011ffc3 116 IF :LNOT::DEF:NO_CRP
mbed_official 475:a5319011ffc3 117 AREA |.ARM.__at_0x02FC|, CODE, READONLY
mbed_official 475:a5319011ffc3 118 DCD 0xFFFFFFFF
mbed_official 475:a5319011ffc3 119 ENDIF
mbed_official 475:a5319011ffc3 120
mbed_official 475:a5319011ffc3 121 AREA |.text|, CODE, READONLY
mbed_official 475:a5319011ffc3 122
mbed_official 475:a5319011ffc3 123
mbed_official 475:a5319011ffc3 124 ; Reset Handler
mbed_official 475:a5319011ffc3 125
mbed_official 475:a5319011ffc3 126 Reset_Handler PROC
mbed_official 475:a5319011ffc3 127 EXPORT Reset_Handler [WEAK]
mbed_official 475:a5319011ffc3 128 IMPORT SystemInit
mbed_official 475:a5319011ffc3 129 IMPORT __main
mbed_official 475:a5319011ffc3 130 LDR R0, =SystemInit
mbed_official 475:a5319011ffc3 131 BLX R0
mbed_official 475:a5319011ffc3 132 LDR R0, =__main
mbed_official 475:a5319011ffc3 133 BX R0
mbed_official 475:a5319011ffc3 134 ENDP
mbed_official 475:a5319011ffc3 135
mbed_official 475:a5319011ffc3 136
mbed_official 475:a5319011ffc3 137 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 475:a5319011ffc3 138
mbed_official 475:a5319011ffc3 139 NMI_Handler PROC
mbed_official 475:a5319011ffc3 140 EXPORT NMI_Handler [WEAK]
mbed_official 475:a5319011ffc3 141 B .
mbed_official 475:a5319011ffc3 142 ENDP
mbed_official 475:a5319011ffc3 143 HardFault_Handler\
mbed_official 475:a5319011ffc3 144 PROC
mbed_official 475:a5319011ffc3 145 EXPORT HardFault_Handler [WEAK]
mbed_official 475:a5319011ffc3 146 B .
mbed_official 475:a5319011ffc3 147 ENDP
mbed_official 475:a5319011ffc3 148 SVC_Handler PROC
mbed_official 475:a5319011ffc3 149 EXPORT SVC_Handler [WEAK]
mbed_official 475:a5319011ffc3 150 B .
mbed_official 475:a5319011ffc3 151 ENDP
mbed_official 475:a5319011ffc3 152 PendSV_Handler PROC
mbed_official 475:a5319011ffc3 153 EXPORT PendSV_Handler [WEAK]
mbed_official 475:a5319011ffc3 154 B .
mbed_official 475:a5319011ffc3 155 ENDP
mbed_official 475:a5319011ffc3 156 SysTick_Handler PROC
mbed_official 475:a5319011ffc3 157 EXPORT SysTick_Handler [WEAK]
mbed_official 475:a5319011ffc3 158 B .
mbed_official 475:a5319011ffc3 159 ENDP
mbed_official 475:a5319011ffc3 160 Reserved_IRQHandler PROC
mbed_official 475:a5319011ffc3 161 EXPORT Reserved_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 162 B .
mbed_official 475:a5319011ffc3 163 ENDP
mbed_official 475:a5319011ffc3 164
mbed_official 475:a5319011ffc3 165 Default_Handler PROC
mbed_official 475:a5319011ffc3 166 EXPORT PIN_INT0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 167 EXPORT PIN_INT1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 168 EXPORT PIN_INT2_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 169 EXPORT PIN_INT3_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 170 EXPORT PIN_INT4_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 171 EXPORT PIN_INT5_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 172 EXPORT PIN_INT6_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 173 EXPORT PIN_INT7_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 174 EXPORT GINT0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 175 EXPORT GINT1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 176 EXPORT I2C1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 177 EXPORT USART1_4_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 178 EXPORT USART2_3_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 179 EXPORT SCT0_1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 180 EXPORT SSP1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 181 EXPORT I2C0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 182 EXPORT CT16B0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 183 EXPORT CT16B1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 184 EXPORT CT32B0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 185 EXPORT CT32B1_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 186 EXPORT SSP0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 187 EXPORT USART0_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 188 EXPORT USB_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 189 EXPORT USB_FIQ_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 190 EXPORT ADC_A_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 191 EXPORT RTC_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 192 EXPORT BOD_WDT_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 193 EXPORT FLASH_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 194 EXPORT DMA_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 195 EXPORT ADC_B_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 196 EXPORT USBWAKEUP_IRQHandler [WEAK]
mbed_official 475:a5319011ffc3 197
mbed_official 475:a5319011ffc3 198 PIN_INT0_IRQHandler
mbed_official 475:a5319011ffc3 199 PIN_INT1_IRQHandler
mbed_official 475:a5319011ffc3 200 PIN_INT2_IRQHandler
mbed_official 475:a5319011ffc3 201 PIN_INT3_IRQHandler
mbed_official 475:a5319011ffc3 202 PIN_INT4_IRQHandler
mbed_official 475:a5319011ffc3 203 PIN_INT5_IRQHandler
mbed_official 475:a5319011ffc3 204 PIN_INT6_IRQHandler
mbed_official 475:a5319011ffc3 205 PIN_INT7_IRQHandler
mbed_official 475:a5319011ffc3 206 GINT0_IRQHandler
mbed_official 475:a5319011ffc3 207 GINT1_IRQHandler
mbed_official 475:a5319011ffc3 208 I2C1_IRQHandler
mbed_official 475:a5319011ffc3 209 USART1_4_IRQHandler
mbed_official 475:a5319011ffc3 210 USART2_3_IRQHandler
mbed_official 475:a5319011ffc3 211 SCT0_1_IRQHandler
mbed_official 475:a5319011ffc3 212 SSP1_IRQHandler
mbed_official 475:a5319011ffc3 213 I2C0_IRQHandler
mbed_official 475:a5319011ffc3 214 CT16B0_IRQHandler
mbed_official 475:a5319011ffc3 215 CT16B1_IRQHandler
mbed_official 475:a5319011ffc3 216 CT32B0_IRQHandler
mbed_official 475:a5319011ffc3 217 CT32B1_IRQHandler
mbed_official 475:a5319011ffc3 218 SSP0_IRQHandler
mbed_official 475:a5319011ffc3 219 USART0_IRQHandler
mbed_official 475:a5319011ffc3 220 USB_IRQHandler
mbed_official 475:a5319011ffc3 221 USB_FIQ_IRQHandler
mbed_official 475:a5319011ffc3 222 ADC_A_IRQHandler
mbed_official 475:a5319011ffc3 223 RTC_IRQHandler
mbed_official 475:a5319011ffc3 224 BOD_WDT_IRQHandler
mbed_official 475:a5319011ffc3 225 FLASH_IRQHandler
mbed_official 475:a5319011ffc3 226 DMA_IRQHandler
mbed_official 475:a5319011ffc3 227 ADC_B_IRQHandler
mbed_official 475:a5319011ffc3 228 USBWAKEUP_IRQHandler
mbed_official 475:a5319011ffc3 229
mbed_official 475:a5319011ffc3 230 B .
mbed_official 475:a5319011ffc3 231
mbed_official 475:a5319011ffc3 232 ENDP
mbed_official 475:a5319011ffc3 233
mbed_official 475:a5319011ffc3 234
mbed_official 475:a5319011ffc3 235 ALIGN
mbed_official 475:a5319011ffc3 236
mbed_official 475:a5319011ffc3 237
mbed_official 475:a5319011ffc3 238 ; User Initial Stack & Heap
mbed_official 475:a5319011ffc3 239
mbed_official 475:a5319011ffc3 240 EXPORT __initial_sp
mbed_official 475:a5319011ffc3 241 EXPORT __heap_base
mbed_official 475:a5319011ffc3 242 EXPORT __heap_limit
mbed_official 475:a5319011ffc3 243
mbed_official 475:a5319011ffc3 244 END