Increse heap and stack sizes

This commit is contained in:
Mario Hüttel 2020-02-15 01:03:38 +01:00
parent 723afd9f56
commit b497537a78

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 = 0x1500; /* required amount of heap (DEFAULT 0) */
_Min_Stack_Size = 0x2000 ; /* required amount of stack */
_Min_Heap_Size = 0x2100; /* required amount of heap (DEFAULT 0) */
_Min_Stack_Size = 0x3000 ; /* required amount of stack */
/* recommended min stack size for printf=0x2000, orig = 0x400 */
/* Specify the memory areas */
@ -162,14 +162,14 @@ SECTIONS
/* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack (NOLOAD):
{
. = ALIGN(4);
. = ALIGN(8);
PROVIDE (heap_low = .); /* for _sbrk */
PROVIDE ( end = . );
PROVIDE ( _end = . );
. = . + _Min_Heap_Size;
PROVIDE (heap_top = .); /* for _sbrk */
. = . + _Min_Stack_Size;
. = ALIGN(4);
. = ALIGN(8);
} >RAM
/* MEMORY_bank1 section, code must be located here explicitly */