From 7af790aa0395322cc6e91e7cdbbd83612e871489 Mon Sep 17 00:00:00 2001 From: "henryk@ploetzli.ch" Date: Fri, 28 Aug 2009 00:36:02 +0000 Subject: [PATCH] Jump to the correct physical address in Flash. (The comment was wrong, it never used RAM) --- bootrom/bootrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootrom/bootrom.c b/bootrom/bootrom.c index c654db29..3dba041e 100644 --- a/bootrom/bootrom.c +++ b/bootrom/bootrom.c @@ -182,8 +182,8 @@ void BootROM(void) USB_D_PLUS_PULLUP_OFF(); LED_B_ON(); - // jump to RAM address 0x10000 (LSBit set for thumb mode) - asm("ldr r3, = 0x10001\n"); + // jump to Flash address 0x10000 (LSBit set for thumb mode, 0x100000 added for Flash base address) + asm("ldr r3, = 0x00110001\n"); asm("bx r3\n"); } } -- 2.39.2