-
I have NodeMCU(32MB version), but the size(physical) is too big. And my project only needs 2 IOs.
Besides, this happened when I tried to
require("Storage").compact();
, the free space on the flash at least has 60%, and my purpose is to compact it myself instead of automatically(when the free space run out), cause that will lead to data loss.And I don't know how to compile it myself, I cloned the source and tried to compile, but I have no idea where I could find the hex file, I am noob. :D.
But anyway, thank you for the reply.
I guess
require("Storage").compact();
can't work because storage space is to small for what you are trying.What about eraseAll(), write .boot and usercode, or by a 4MB board or
build a 1MB firmware Espruino version without FOTA but lots of space like a 4MB board.
Fixed typo