aboutsummaryrefslogtreecommitdiffstats
path: root/link.ld
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2018-01-01 17:40:28 -0500
committerClyne Sullivan <tullivan99@gmail.com>2018-01-01 17:40:28 -0500
commit058c283919424ef8b4425cdf74739535dd1d8072 (patch)
tree7aa6c40d7c6aa1dad5b0fba24f22c22759fcab59 /link.ld
parentde7c4fb07d1ac0298e7fc62000c35193e221aaae (diff)
heap; multitasking
Diffstat (limited to 'link.ld')
-rw-r--r--link.ld12
1 files changed, 6 insertions, 6 deletions
diff --git a/link.ld b/link.ld
index e24ff34..8877898 100644
--- a/link.ld
+++ b/link.ld
@@ -34,15 +34,15 @@ ENTRY(Reset_Handler)
/* Highest address of the user mode stack */
_estack = 0x20018000; /* end of RAM */
-/* Generate a link error if heap and stack don't fit into RAM */
-_Min_Heap_Size = 0x200;; /* required amount of heap */
-_Min_Stack_Size = 0x400;; /* required amount of stack */
+
+_Min_Stack_Size = 0x0400; /* 1k min. stack */
+_Min_Heap_Size = 0x0400; /* 1k min. heap */
/* Specify the memory areas */
MEMORY
{
-FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
-RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K
+ FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
+ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 96K
}
/* Define output sections */
@@ -166,4 +166,4 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) }
}
-
+_total_ram = _estack - _end;