Browse Source

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.
pull/6142/head
Albort Xue 4 years ago
committed by Damien George
parent
commit
05e5d411b5
  1. 3
      ports/mimxrt/boards/MIMXRT1011.ld

3
ports/mimxrt/boards/MIMXRT1011.ld

@ -3,6 +3,9 @@ __stack_size__ = 0x6000;
_estack = __StackTop; _estack = __StackTop;
_sstack = __StackLimit; _sstack = __StackLimit;
/* Do not use the traditional C heap. */
__heap_size__ = 0;
/* Use second OCRAM bank for GC heap. */ /* Use second OCRAM bank for GC heap. */
_gc_heap_start = ORIGIN(m_data2); _gc_heap_start = ORIGIN(m_data2);
_gc_heap_end = ORIGIN(m_data2) + LENGTH(m_data2); _gc_heap_end = ORIGIN(m_data2) + LENGTH(m_data2);

Loading…
Cancel
Save