I need to know how much RAM (heap size ?) is available for the user in MicroPython running on :
- Pyboard v1.1 (99 KB < 192KB), MicroPython v1.8.6 (updated in 21/11/2016);
- Pyboard Lite v1.0 (84 KB < 128KB), MicroPython v1.8.6 (updated in 21/11/2016);
- Pyboard D SF2W (175 KB < ?KB) and SF2W (470 KB < ?KB), MicroPython 1.10 (updated in 09/02/2019);
- WiPy 1.0 (51 KB < 256 KB), firmware 1.3.0 MicroPython v1.8.2-103 (updated in 02/11/2016);
- ESP8266 (28.6 KB < 96 KB), MicroPython v1.8.6-7 (updated in 12/11/2016);
- BBC Micro:bit (8.4 KB < 16 KB), MicroPython v1.7-9 (used by the BBC Micro:bit online Python editor) (updated in 02/11/2016);
- LoPy (77 KB < 416 KB), firmware v0.9.6.b1 (updated in 27/11/2016);
- WiPy 2.0 (77 KB < 416 KB), firmware v0.9.6.b1 (updated in 27/11/2016);
- Espruino Pico (53 KB < 9 6KB), MicroPython v1.8.4 (updated in 02/11/2016);
- Teensy 3.1 (50 KB < 64 KB), MicroPython v1.8.6 dev-build from dhylands in 20/11/2016 (updated in 21/11/2016);
- Teensy 3.5 (166 KB < 192 KB), MicroPython v1.8.6 dev-build from dhylands in 20/11/2016 (updated in 21/11/2016);
- Teensy 3.6 (229 KB < 256 KB), MicroPython v1.8.6 dev-build from dhylands in 20/11/2016 (updated in 21/11/2016);
Meaning : MicroPython free RAM < Physical RAM. The values off free RAM are approximate because depend on the MicroPython version.
To measure the free RAM, after a new session, type :
Code: Select all
import gc
gc.collect()
gc.mem_free()
The reason is simple : I'm porting some Python 3 modules to MicroPython, and how much RAM they need x how much RAM available in some MicroPython boards is important to estimate which boards will be able to run the MicroPython module.