add memory layout commment, undo -8 simplification

This commit is contained in:
Conor Patrick 2019-03-22 13:54:42 -04:00 committed by Nicolas Stalder
parent 3a10427bd9
commit a0d27c2c56
2 changed files with 8 additions and 2 deletions

View File

@ -12,9 +12,15 @@ _estack = 0x2000c000;
_MIN_STACK_SIZE = 0x400; _MIN_STACK_SIZE = 0x400;
/*
Memory layout of device:
20 KB 198KB-8 38 KB
| bootloader | application | secrets/data |
*/
MEMORY MEMORY
{ {
flash (rx) : ORIGIN = 0x08005000, LENGTH = 190K flash (rx) : ORIGIN = 0x08005000, LENGTH = 198K - 8
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
} }

View File

@ -14,7 +14,7 @@ _MIN_STACK_SIZE = 0x400;
MEMORY MEMORY
{ {
flash (rx) : ORIGIN = 0x08008000, LENGTH = 178K flash (rx) : ORIGIN = 0x08008000, LENGTH = 186K - 8
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K ram (xrw) : ORIGIN = 0x20000000, LENGTH = 48K
sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K sram2 (rw) : ORIGIN = 0x10000000, LENGTH = 16K
} }