esp8266 not enough room to swing a python
Posted: Sun Jan 30, 2022 11:54 pm
I've got an ancient 8266 with 32k ram & 3 meg of flash
but it won't run a 10k .mpy file. Given the .mpy is less than a third of the available ram I'm a bit surprised. Is there a rule-of-thumb for what percentage of ram an .mpy is allowed to be before it won't run?
Code: Select all
>>> import gc; gc.collect(); gc.mem_free()
32080
>>> import os; s=os.statvfs(''); print('%.3fkb free of %.3fkb'%(s[0]*s[3]/1048.576, s[0]*s[2]/1048.576))
2953.126kb free of 2980.470kb