From 961bac759a6ca45a4a5147fe468b0e2c07050ed2 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 1 Apr 2021 10:39:00 -0700 Subject: [PATCH] mro pixracerpro:Add remaining SRAM4 & DTCM to heap --- boards/mro/pixracerpro/nuttx-config/nsh/defconfig | 3 +-- .../pixracerpro/nuttx-config/scripts/bootloader_script.ld | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/boards/mro/pixracerpro/nuttx-config/nsh/defconfig b/boards/mro/pixracerpro/nuttx-config/nsh/defconfig index 680d60eea7..98643df140 100644 --- a/boards/mro/pixracerpro/nuttx-config/nsh/defconfig +++ b/boards/mro/pixracerpro/nuttx-config/nsh/defconfig @@ -90,6 +90,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 @@ -164,8 +165,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_I2C_DYNTIMEO=y diff --git a/boards/mro/pixracerpro/nuttx-config/scripts/bootloader_script.ld b/boards/mro/pixracerpro/nuttx-config/scripts/bootloader_script.ld index 4ffb05e057..f5a14e147d 100644 --- a/boards/mro/pixracerpro/nuttx-config/scripts/bootloader_script.ld +++ b/boards/mro/pixracerpro/nuttx-config/scripts/bootloader_script.ld @@ -197,8 +197,12 @@ SECTIONS } > AXI_SRAM /* 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. */