mark heap and stack as noload sections
This commit is contained in:
parent
bccacc253c
commit
314bc278eb
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user