bbc micro:bit memory problem

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
fizban
Posts: 24
Joined: Mon Oct 24, 2016 2:32 pm

Re: bbc micro:bit memory problem

Post by fizban » Tue Oct 25, 2016 8:29 pm

I guess Pythoncoder is referring to the issue described in here: viewtopic.php?f=16&t=1876

The microbit adaptation seems to have a heap of 2423 bytes:

from mprun.c (https://github.com/bbcmicrobit/micropyt ... it/mprun.c)

// allocate the heap statically in the bss
static uint32_t heap[9692 / 4];

So I guess we are more prone to reach the limit sooner than with the other boards.

The persistent bytecode functionality described by pythoncoder at viewtopic.php?t=1776 is a little bit beyond by current level...

rhubarbdog
Posts: 168
Joined: Tue Nov 07, 2017 11:45 pm

Re: bbc micro:bit memory problem

Post by rhubarbdog » Mon Nov 13, 2017 7:38 pm

Would plotlist not be smaller if it were made up of tuples rather than lists?

Post Reply