summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbort Xue <yao.xue@nxp.com>2020-06-10 17:11:30 +0800
committerDamien George <damien.p.george@gmail.com>2020-06-10 22:49:26 +1000
commit05e5d411b53dcba9529b6ac1e9388bab65f8c11b (patch)
treead1e05230d26538722e82e7433078ff4168962df
parent2934e41df0938b26cffc8eb1ea9f24a077990b61 (diff)
mimxrt/boards: Set __heap_size__ to 0 in MIMXRT1011.ld.
Do not use the traditional C heap in order to save memory, because the traditional C heap is unused in MicroPython.
-rw-r--r--ports/mimxrt/boards/MIMXRT1011.ld3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/mimxrt/boards/MIMXRT1011.ld b/ports/mimxrt/boards/MIMXRT1011.ld
index 6b59649fc..0512c48a7 100644
--- a/ports/mimxrt/boards/MIMXRT1011.ld
+++ b/ports/mimxrt/boards/MIMXRT1011.ld
@@ -3,6 +3,9 @@ __stack_size__ = 0x6000;
_estack = __StackTop;
_sstack = __StackLimit;
+/* Do not use the traditional C heap. */
+__heap_size__ = 0;
+
/* Use second OCRAM bank for GC heap. */
_gc_heap_start = ORIGIN(m_data2);
_gc_heap_end = ORIGIN(m_data2) + LENGTH(m_data2);