I have a setup with a raspberry pi pico
I have 3000 lines of code
when I compile I get this error:
MemoryError: memory allocation failed, allocating 21858 bytes
or
RuntimeError: bytecode overflow
with the mem tool i get this reply
Free storage: 1264.0 KB
Memory: 36640 of 188832 bytes used.
CPU Freq: 125.0Mhz
and running "print(gc.mem_free())"
gives 182944 bytes free
I use gc.collect()
Now I have ordered a Raspberry Pi Pico 2
Hope my program will fit...
How can I solve this problem?
I have 3000 lines of code
when I compile I get this error:
MemoryError: memory allocation failed, allocating 21858 bytes
or
RuntimeError: bytecode overflow
with the mem tool i get this reply
Free storage: 1264.0 KB
Memory: 36640 of 188832 bytes used.
CPU Freq: 125.0Mhz
and running "print(gc.mem_free())"
gives 182944 bytes free
I use gc.collect()
Now I have ordered a Raspberry Pi Pico 2
Hope my program will fit...
How can I solve this problem?
Statistics: Posted by petervanlievenoogen — Thu Oct 24, 2024 3:24 pm