We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6ca385 commit 7bebaaeCopy full SHA for 7bebaae
memory.x
@@ -2,11 +2,8 @@ MEMORY
2
{
3
/* NOTE K = KiBi = 1024 bytes */
4
FLASH : ORIGIN = 0x08000000, LENGTH = 16K
5
- RAM : ORIGIN = 0x20000000, LENGTH = 4K
+ RAM : ORIGIN = 0x20000000, LENGTH = 2K
6
}
7
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
-
+/* We have 4K RAM, and only let the linker see 2K, so we have 2K reserved for stack. */
+_stack_start = ORIGIN(RAM) + 4K;
0 commit comments