I am using the latest stable release of micropython and below is my entire program.
import gc
gc.collect()
print('free:{}, alloc:{}'.format(gc.mem_free(), gc.mem_alloc()))
#free:187488, alloc:4576
Where did 64k of my RAM go? I know it isn't a hardware issue. I plugged in a brand new Pico that doesn't even have headers soldered on it, and got the exact same results. Am I missing something?
EDIT:
I found the below in ports/rp2/main.c
. Is there some reason why it's not 256
?
static char gc_heap[192 * 1024];