Skip to content

Commit 38485a5

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

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ CONFIG_MMCSD=y
9292
CONFIG_MMCSD_SDIO=y
9393
CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE=y
9494
CONFIG_MM_IOB=y
95+
CONFIG_MM_REGIONS=4
9596
CONFIG_MTD=y
9697
CONFIG_MTD_BYTE_WRITE=y
9798
CONFIG_MTD_PARTITION=y
@@ -160,8 +161,6 @@ CONFIG_STM32H7_BKPSRAM=y
160161
CONFIG_STM32H7_DMA1=y
161162
CONFIG_STM32H7_DMA2=y
162163
CONFIG_STM32H7_DMACAPABLE=y
163-
CONFIG_STM32H7_DTCMEXCLUDE=y
164-
CONFIG_STM32H7_DTCM_PROCFS=y
165164
CONFIG_STM32H7_FLASH_OVERRIDE_I=y
166165
CONFIG_STM32H7_FLOWCONTROL_BROKEN=y
167166
CONFIG_STM32H7_I2C1=y

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,14 @@ 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

210+
207211
/* Stabs debugging sections. */
208212
.stab 0 : { *(.stab) }
209213
.stabstr 0 : { *(.stabstr) }

0 commit comments

Comments
 (0)