forked from M-Labs/thermostat
memory.x: fix RAM2 region, place stack in CCMRAM
This commit is contained in:
parent
c7c5a733f9
commit
5db38b3f27
5
memory.x
5
memory.x
|
@ -2,10 +2,9 @@ MEMORY
|
||||||
{
|
{
|
||||||
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
|
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 112K
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 112K
|
||||||
RAM2 (xrw) : ORIGIN = 0x20010000, LENGTH = 16K
|
RAM2 (xrw) : ORIGIN = 0x2001C000, LENGTH = 16K
|
||||||
RAM3 (xrw) : ORIGIN = 0x20020000, LENGTH = 64K
|
RAM3 (xrw) : ORIGIN = 0x20020000, LENGTH = 64K
|
||||||
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
|
CCMRAM (rw) : ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
}
|
}
|
||||||
|
|
||||||
_stack_start = ORIGIN(RAM) + LENGTH(RAM);
|
_stack_start = ORIGIN(CCMRAM) + LENGTH(CCMRAM);
|
||||||
_heap_size = LENGTH(RAM) - 4K;
|
|
||||||
|
|
Loading…
Reference in New Issue