Skip to content

Commit ad9a85f

Browse files
committed
mimxrt/boards/common.ld: Move heap and stack to ocrm ram.
1 parent 29269ff commit ad9a85f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ports/mimxrt/boards/common.ld

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,30 +250,31 @@ SECTIONS
250250
.heap :
251251
{
252252
. = ALIGN(8);
253+
*(.heap);
253254
__end__ = .;
254255
PROVIDE(end = .);
255256
__HeapBase = .;
256257
. += HEAP_SIZE;
257258
__HeapLimit = .;
258259
__heap_limit = .; /* Add for _sbrk */
259-
} > m_dtcm
260+
} > m_ocrm
260261

261262
.stack :
262263
{
263264
. = ALIGN(8);
264265
. += STACK_SIZE;
265-
} > m_dtcm
266+
} > m_ocrm
266267

267268
_flashimagelen = __FLASH_DATA_END - flash_start;
268269

269270
/* Initializes stack on the end of block */
270-
__StackTop = ORIGIN(m_dtcm) + LENGTH(m_dtcm);
271+
__StackTop = ORIGIN(m_ocrm) + LENGTH(m_ocrm);
271272
__StackLimit = __StackTop - STACK_SIZE;
272273
_vStackTop = __StackTop;
273274
PROVIDE(__stack = __StackTop);
274275

275276
.ARM.attributes 0 : { *(.ARM.attributes) }
276277

277-
ASSERT(__StackLimit >= __HeapLimit, "region m_dtcm overflowed with stack and heap")
278+
ASSERT(__StackLimit >= __HeapLimit, "region m_ocrm overflowed with stack and heap")
278279
}
279280

0 commit comments

Comments
 (0)