add startup module

merge-requests/1/head
kirbylife 2021-11-07 02:43:59 -06:00
parent 6bc1e3ec49
commit 08ee175423
1 changed files with 14 additions and 0 deletions

14
memory.x 100644
View File

@ -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;