Skip to content

Commit 7bebaae

Browse files
committed
Ensure we have 2K stack.
1 parent b6ca385 commit 7bebaae

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

memory.x

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ MEMORY
22
{
33
/* NOTE K = KiBi = 1024 bytes */
44
FLASH : ORIGIN = 0x08000000, LENGTH = 16K
5-
RAM : ORIGIN = 0x20000000, LENGTH = 4K
5+
RAM : ORIGIN = 0x20000000, LENGTH = 2K
66
}
77

8-
/* This is where the call stack will be allocated. */
9-
/* The stack is of the full descending type. */
10-
/* NOTE Do NOT modify `_stack_start` unless you know what you are doing */
11-
_stack_start = ORIGIN(RAM) + LENGTH(RAM);
12-
8+
/* We have 4K RAM, and only let the linker see 2K, so we have 2K reserved for stack. */
9+
_stack_start = ORIGIN(RAM) + 4K;

0 commit comments

Comments
 (0)