bbc micro:bit memory problem
Posted: Thu Jun 30, 2016 9:28 am
My Daughter was lucky enough to be lent a bbc microbit by her school and I am helping her write a micropython problem using the mu editor.
We’re hitting a problem with a small 100 line python program;
Trying to run it results in this message. Doesn't even start running.
MemoryError: memory allocation failed, allocating 3544 bytes
MicroPython v1.7-9-gbe020eb on 2016-04-18; micro:bit with nRF51822
Type "help()" for more information.
If we take a few lines out of the code it runs ok.
There seems to be a limit of around 4kb for the program size even though the microbit has 16kb of space.
According to windows explorer it’s;
Size : 2892 bytes
Size on disk: 4096 bytes
We have searched ( for days ) for an answer but we’re basically stuck.
I can't even find a way of seeing how much memory is being consumed or size of any objects ( mainly lists )
We would really appreciate any help.
We’re hitting a problem with a small 100 line python program;
Trying to run it results in this message. Doesn't even start running.
MemoryError: memory allocation failed, allocating 3544 bytes
MicroPython v1.7-9-gbe020eb on 2016-04-18; micro:bit with nRF51822
Type "help()" for more information.
If we take a few lines out of the code it runs ok.
There seems to be a limit of around 4kb for the program size even though the microbit has 16kb of space.
According to windows explorer it’s;
Size : 2892 bytes
Size on disk: 4096 bytes
We have searched ( for days ) for an answer but we’re basically stuck.
I can't even find a way of seeing how much memory is being consumed or size of any objects ( mainly lists )
We would really appreciate any help.