Memory management primer
Posted: Tue Jul 05, 2022 12:33 pm
Hello,
I am looking for a reference that explains how memory is managed with MicroPython on the ESP8266. I know the basic facts, that my D1 Mini has 4MB of flash and that the ESP8266 has 80KB of RAM. I know that I can check how much heap is available with gc.mem_free(). But I don't really know what factors are at play in terms of files in the flash, objects created, modules imported, etc. when I get out of memory errors. I searched in the forum but couldn't find anything. Does any of you have a link, please?
Thank you!
AP
I am looking for a reference that explains how memory is managed with MicroPython on the ESP8266. I know the basic facts, that my D1 Mini has 4MB of flash and that the ESP8266 has 80KB of RAM. I know that I can check how much heap is available with gc.mem_free(). But I don't really know what factors are at play in terms of files in the flash, objects created, modules imported, etc. when I get out of memory errors. I searched in the forum but couldn't find anything. Does any of you have a link, please?
Thank you!
AP