mark heap and stack as noload sections

This commit is contained in:
Mario Hüttel 2020-02-02 21:38:40 +01:00
parent bccacc253c
commit 314bc278eb

View File

@ -36,8 +36,8 @@ ENTRY(Reset_Handler)
_estack = 0x20020000; /* end of 128K RAM on AHB bus*/
/* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0X0000; /* required amount of heap (DEFAULT 0) */
_Min_Stack_Size = 0x400 ; /* required amount of stack */
_Min_Heap_Size = 0x1000; /* required amount of heap (DEFAULT 0) */
_Min_Stack_Size = 0x1000 ; /* required amount of stack */
/* recommended min stack size for printf=0x2000, orig = 0x400 */
/* Specify the memory areas */
@ -167,7 +167,7 @@ SECTIONS
} >RAM
/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack :
._user_heap_stack (NOLOAD):
{
. = ALIGN(4);
PROVIDE (heap_low = .); /* for _sbrk */