Skip to content

Commit 7acbc1d

Browse files
committed
Revert "Ensure we have 2K stack."
This reverts commit 7bebaae.
1 parent 8f1380e commit 7acbc1d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

memory.x

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

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;
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+

0 commit comments

Comments
 (0)