Jump to the correct physical address in Flash. (The comment was wrong, it never used RAM)

This commit is contained in:
henryk@ploetzli.ch 2009-08-28 00:36:02 +00:00
parent 47c872f48f
commit 7af790aa03

View file

@ -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");
}
}