commit 6eb004dd7179a8872181c4a80794d531a882851b
parent 0306678f2bf2b9dc561804d7f87b7ca95dbc40c9
Author: Matsuda Kenji <info@mtkn.jp>
Date: Wed, 12 Apr 2023 11:46:56 +0900
complete
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/boot2.s b/boot2.s
@@ -114,6 +114,7 @@ wait_sreg:
ldr r2, boot2_end
ldr r3, sram_base
ldr r0, etext
+ sub r0, r0, r3
lsr r0, #2
sram_cpy:
ldr r1, [r2, #0]
diff --git a/memmap.ld b/memmap.ld
@@ -8,6 +8,7 @@ SECTIONS
{
.boot2 : {
*(.boot2)
+ . = 0x100;
} > FLASH
.text : AT(ORIGIN(FLASH) + 0x100){