From dcfa3c97ba4c09cb0322056abb2d4ef3f1762f30 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 1 Apr 2021 10:39:01 -0700 Subject: [PATCH] px4 fmu-v6x:Add remaining SRAM4 & DTCM to heap --- boards/px4/fmu-v6x/nuttx-config/nsh/defconfig | 3 +-- boards/px4/fmu-v6x/nuttx-config/scripts/script.ld | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig b/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig index 2df7e37500..6ee8b8ed40 100644 --- a/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig +++ b/boards/px4/fmu-v6x/nuttx-config/nsh/defconfig @@ -96,6 +96,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 @@ -191,8 +192,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_ETHMAC=y CONFIG_STM32H7_FLASH_OVERRIDE_I=y CONFIG_STM32H7_FLOWCONTROL_BROKEN=y diff --git a/boards/px4/fmu-v6x/nuttx-config/scripts/script.ld b/boards/px4/fmu-v6x/nuttx-config/scripts/script.ld index eb5c80485f..66bd6130c2 100644 --- a/boards/px4/fmu-v6x/nuttx-config/scripts/script.ld +++ b/boards/px4/fmu-v6x/nuttx-config/scripts/script.ld @@ -200,8 +200,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. */