From f63f1f3969440bd1697a76beea1fb0c08821d3f4 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 1 Apr 2021 10:38:58 -0700 Subject: [PATCH] holybro durandal-v1:Add remaining SRAM4 & DTCM to heap --- boards/holybro/durandal-v1/nuttx-config/nsh/defconfig | 3 +-- boards/holybro/durandal-v1/nuttx-config/scripts/script.ld | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/boards/holybro/durandal-v1/nuttx-config/nsh/defconfig b/boards/holybro/durandal-v1/nuttx-config/nsh/defconfig index aeeebf2cac..6fea488144 100644 --- a/boards/holybro/durandal-v1/nuttx-config/nsh/defconfig +++ b/boards/holybro/durandal-v1/nuttx-config/nsh/defconfig @@ -89,6 +89,7 @@ CONFIG_MEMSET_OPTSPEED=y CONFIG_MMCSD=y CONFIG_MMCSD_SDIO=y CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE=y +CONFIG_MM_REGIONS=4 CONFIG_MTD=y CONFIG_MTD_BYTE_WRITE=y CONFIG_MTD_PARTITION=y @@ -161,8 +162,6 @@ CONFIG_STM32H7_BKPSRAM=y CONFIG_STM32H7_DMA1=y CONFIG_STM32H7_DMA2=y CONFIG_STM32H7_DMACAPABLE=y -CONFIG_STM32H7_DTCMEXCLUDE=y -CONFIG_STM32H7_DTCM_PROCFS=y CONFIG_STM32H7_FLOWCONTROL_BROKEN=y CONFIG_STM32H7_I2C1=y CONFIG_STM32H7_I2C2=y diff --git a/boards/holybro/durandal-v1/nuttx-config/scripts/script.ld b/boards/holybro/durandal-v1/nuttx-config/scripts/script.ld index ba9ca72bcb..580f63f0a6 100644 --- a/boards/holybro/durandal-v1/nuttx-config/scripts/script.ld +++ b/boards/holybro/durandal-v1/nuttx-config/scripts/script.ld @@ -199,8 +199,11 @@ SECTIONS /* Emit the the D3 power domain section for locating BDMA data */ - .sram4 (NOLOAD) : + .sram4_reserve (NOLOAD) : { + *(.sram4) + . = ALIGN(4); + _sram4_heap_start = ABSOLUTE(.); } > sram4 /* Stabs debugging sections. */