From 08ee175423ce29ef33758bc8a0382a3e4512c1c4 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Sun, 7 Nov 2021 02:43:59 -0600 Subject: [PATCH] add startup module --- memory.x | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 memory.x diff --git a/memory.x b/memory.x new file mode 100644 index 0000000..46aab3a --- /dev/null +++ b/memory.x @@ -0,0 +1,14 @@ + +MEMORY { +BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100 +FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100 +RAM : ORIGIN = 0x20000000, LENGTH = 256K +} + +SECTIONS { +/* ### Boot loader */ +.boot2 ORIGIN(BOOT2) : +{ +KEEP(*(.boot2)); +} > BOOT2 +} INSERT BEFORE .text;