Skip to content

Commit f63f1f3

Browse files
davids5dagar
authored andcommitted
holybro durandal-v1:Add remaining SRAM4 & DTCM to heap
1 parent 55ed765 commit f63f1f3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

boards/holybro/durandal-v1/nuttx-config/nsh/defconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ CONFIG_MEMSET_OPTSPEED=y
8989
CONFIG_MMCSD=y
9090
CONFIG_MMCSD_SDIO=y
9191
CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE=y
92+
CONFIG_MM_REGIONS=4
9293
CONFIG_MTD=y
9394
CONFIG_MTD_BYTE_WRITE=y
9495
CONFIG_MTD_PARTITION=y
@@ -161,8 +162,6 @@ CONFIG_STM32H7_BKPSRAM=y
161162
CONFIG_STM32H7_DMA1=y
162163
CONFIG_STM32H7_DMA2=y
163164
CONFIG_STM32H7_DMACAPABLE=y
164-
CONFIG_STM32H7_DTCMEXCLUDE=y
165-
CONFIG_STM32H7_DTCM_PROCFS=y
166165
CONFIG_STM32H7_FLOWCONTROL_BROKEN=y
167166
CONFIG_STM32H7_I2C1=y
168167
CONFIG_STM32H7_I2C2=y

boards/holybro/durandal-v1/nuttx-config/scripts/script.ld

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

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

202-
.sram4 (NOLOAD) :
202+
.sram4_reserve (NOLOAD) :
203203
{
204+
*(.sram4)
205+
. = ALIGN(4);
206+
_sram4_heap_start = ABSOLUTE(.);
204207
} > sram4
205208

206209
/* Stabs debugging sections. */

0 commit comments

Comments
 (0)