Skip to content

Commit 55ed765

Browse files
davids5dagar
authored andcommitted
cuav x7pro:Add remaining SRAM4 & DTCM to heap
1 parent df20134 commit 55ed765

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

boards/cuav/x7pro/nuttx-config/nsh/defconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ CONFIG_MEMSET_OPTSPEED=y
8888
CONFIG_MMCSD=y
8989
CONFIG_MMCSD_SDIO=y
9090
CONFIG_MMCSD_SDIOWAIT_WRCOMPLETE=y
91+
CONFIG_MM_REGIONS=4
9192
CONFIG_MTD=y
9293
CONFIG_MTD_BYTE_WRITE=y
9394
CONFIG_MTD_PARTITION=y
@@ -162,8 +163,6 @@ CONFIG_STM32H7_BKPSRAM=y
162163
CONFIG_STM32H7_DMA1=y
163164
CONFIG_STM32H7_DMA2=y
164165
CONFIG_STM32H7_DMACAPABLE=y
165-
CONFIG_STM32H7_DTCMEXCLUDE=y
166-
CONFIG_STM32H7_DTCM_PROCFS=y
167166
CONFIG_STM32H7_FLOWCONTROL_BROKEN=y
168167
CONFIG_STM32H7_I2C1=y
169168
CONFIG_STM32H7_I2C2=y

boards/cuav/x7pro/nuttx-config/scripts/script.ld

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,13 @@ 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

206-
207209
/* Stabs debugging sections. */
208210
.stab 0 : { *(.stab) }
209211
.stabstr 0 : { *(.stabstr) }

0 commit comments

Comments
 (0)