1 @-----------------------------------------------------------------------------
2 @ This code is licensed to you under the terms of the GNU GPL, version 2 or,
3 @ at your option, any later version. See the LICENSE.txt file for the text of
5 @-----------------------------------------------------------------------------
6 @ Reset vector for running from FLASH
7 @-----------------------------------------------------------------------------
11 .section .startup,"ax"
18 b UndefinedInstruction
27 ldr sp, .stack_end @ initialize stack pointer to top of RAM
28 bl CopyBootToRAM @ copy bootloader to RAM (in case the
29 @ user re-flashes the bootloader)
30 ldr r3, .bootphase2_start @ start address of RAM bootloader
36 .word __bootphase2_start__
41 b UndefinedInstruction