From b497537a78fb1dcca428c40f4f9e27069f80334f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 15 Feb 2020 01:03:38 +0100 Subject: [PATCH] Increse heap and stack sizes --- stm-firmware/stm32f407vet6_flash.ld | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stm-firmware/stm32f407vet6_flash.ld b/stm-firmware/stm32f407vet6_flash.ld index c1b33b8..58ba19a 100644 --- a/stm-firmware/stm32f407vet6_flash.ld +++ b/stm-firmware/stm32f407vet6_flash.ld @@ -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 */