From 73be85dd6d7d1dfd8f450bd00cbf96f67f95be02 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sun, 15 Jan 2017 19:39:57 +0100 Subject: [PATCH] nrf52/boards: Increasing the stack and heap in pca10056 (nrf52840) target from 2k/32k to 40k/128k to debug some buffer problems when running large frozen python programs. --- nrf5/boards/nrf52840_aa.ld | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nrf5/boards/nrf52840_aa.ld b/nrf5/boards/nrf52840_aa.ld index 96365f54eb..43b4458315 100644 --- a/nrf5/boards/nrf52840_aa.ld +++ b/nrf5/boards/nrf52840_aa.ld @@ -12,8 +12,8 @@ MEMORY } /* produce a link error if there is not this amount of RAM for these sections */ -_minimum_stack_size = 2K; -_minimum_heap_size = 32K; +_minimum_stack_size = 40K; +_minimum_heap_size = 128K; /* top end of the stack */ @@ -22,6 +22,6 @@ _estack = ORIGIN(RAM) + LENGTH(RAM); /* RAM extents for the garbage collector */ _ram_end = ORIGIN(RAM) + LENGTH(RAM); -_heap_end = 0x20008000; /* tunable */ +_heap_end = 0x20020000; /* tunable */ INCLUDE "boards/common.ld"