Commit e7ff0b8a authored by Phil Howard's avatar Phil Howard Committed by Damien George

rp2/memmap_mp.ld: Lower the minimum GC heap to 32K.

Reduce mimimum heap requirement.  This value allows more room for large,
static buffers in user C modules (such as graphics buffers or otherwise)
which might be allocated outside of MicroPython's heap to guarantee
alignment or avoid fragmentation.
Signed-off-by: default avatarPhil Howard <phil@gadgetoid.com>
parent 1557014e
......@@ -256,9 +256,13 @@ SECTIONS
__StackBottom = __StackTop - SIZEOF(.stack_dummy);
PROVIDE(__stack = __StackTop);
/* Check GC heap is at least 128 KB */
/* On a RP2040 using all SRAM this should always be the case. */
ASSERT((__GcHeapEnd - __GcHeapStart) > 128*1024, "GcHeap is too small")
/* Check GC heap is at least 32 KB */
/* This is quarter the minimum RAM suggested for full-featured MicroPython.
* This value accounts for large static buffers included in user C or C++
* modules, which might significantly reduce the available heap but also
* lower demand for memory at runtime.
*/
ASSERT((__GcHeapEnd - __GcHeapStart) > 32*1024, "GcHeap is too small")
ASSERT( __binary_info_header_end - __logical_binary_start <= 256, "Binary info must be in first 256 bytes of the binary")
/* todo assert on extra code */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment