]> patrickod personal git archive - keywing-rs.git/blob - keywing/memory.x
Initial port to Feather M4
[keywing-rs.git] / keywing / memory.x
1 MEMORY
2 {
3   /* Leave 16k for the default bootloader on the Feather M4 */
4   FLASH (rx)   : ORIGIN = 0x00000000 + 16K, LENGTH = 512K - 16K
5   /* Usually 192K RAM. Reserve 1K at the end for storing panic dumps */
6   RAM (xrw)    : ORIGIN = 0x20000000, LENGTH = 191K
7   PANDUMP (rw) : ORIGIN = 0x20000000 + 191K, LENGTH = 1K
8 }
9
10 _stack_start = ORIGIN(RAM) + LENGTH(RAM);
11 _panic_dump_start = ORIGIN(PANDUMP);
12 _panic_dump_end   = ORIGIN(PANDUMP) + LENGTH(PANDUMP);
13