Initial commit
This commit is contained in:
24
memory.x
Normal file
24
memory.x
Normal file
@@ -0,0 +1,24 @@
|
||||
MEMORY {
|
||||
BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100
|
||||
FLASH : ORIGIN = ORIGIN(BOOT2) + LENGTH(BOOT2), LENGTH = 2M - LENGTH(BOOT2) - 32K
|
||||
ROM : ORIGIN = ORIGIN(FLASH) + LENGTH(FLASH), LENGTH = 32K
|
||||
RAM : ORIGIN = 0x20000000, LENGTH = 256K
|
||||
}
|
||||
|
||||
EXTERN(BOOT2_FIRMWARE)
|
||||
|
||||
SECTIONS {
|
||||
/* ### Boot loader */
|
||||
.boot2 ORIGIN(BOOT2) :
|
||||
{
|
||||
KEEP(*(.boot2));
|
||||
} > BOOT2
|
||||
} INSERT BEFORE .text;
|
||||
|
||||
SECTIONS {
|
||||
/* ### Boot loader */
|
||||
.romdata ORIGIN(ROM) :
|
||||
{
|
||||
KEEP(*(.romdata));
|
||||
} > ROM
|
||||
} INSERT AFTER .bss;
|
||||
Reference in New Issue
Block a user