Skip to content

Commit dcfa3c9

Browse files
davids5dagar
authored andcommitted
px4 fmu-v6x:Add remaining SRAM4 & DTCM to heap
1 parent 38485a5 commit dcfa3c9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

boards/px4/fmu-v6x/nuttx-config/nsh/defconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ CONFIG_MEMSET_OPTSPEED=y
9696
CONFIG_MMCSD=y
9797
CONFIG_MMCSD_SDIO=y
9898
CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE=y
99+
CONFIG_MM_REGIONS=4
99100
CONFIG_MTD=y
100101
CONFIG_MTD_BYTE_WRITE=y
101102
CONFIG_MTD_PARTITION=y
@@ -191,8 +192,6 @@ CONFIG_STM32H7_BKPSRAM=y
191192
CONFIG_STM32H7_DMA1=y
192193
CONFIG_STM32H7_DMA2=y
193194
CONFIG_STM32H7_DMACAPABLE=y
194-
CONFIG_STM32H7_DTCMEXCLUDE=y
195-
CONFIG_STM32H7_DTCM_PROCFS=y
196195
CONFIG_STM32H7_ETHMAC=y
197196
CONFIG_STM32H7_FLASH_OVERRIDE_I=y
198197
CONFIG_STM32H7_FLOWCONTROL_BROKEN=y

boards/px4/fmu-v6x/nuttx-config/scripts/script.ld

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,11 @@ SECTIONS
200200

201201
/* Emit the the D3 power domain section for locating BDMA data */
202202

203-
.sram4 (NOLOAD) :
203+
.sram4_reserve (NOLOAD) :
204204
{
205+
*(.sram4)
206+
. = ALIGN(4);
207+
_sram4_heap_start = ABSOLUTE(.);
205208
} > sram4
206209

207210
/* Stabs debugging sections. */

0 commit comments

Comments
 (0)