From 05e5d411b53dcba9529b6ac1e9388bab65f8c11b Mon Sep 17 00:00:00 2001 From: Albort Xue Date: Wed, 10 Jun 2020 17:11:30 +0800 Subject: [PATCH] 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. --- ports/mimxrt/boards/MIMXRT1011.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/mimxrt/boards/MIMXRT1011.ld b/ports/mimxrt/boards/MIMXRT1011.ld index 6b59649fca..0512c48a7f 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);