This might help: http://www.espruino.com/Saving
An image of what's currently in RAM is compressed and written to flash. It looks like right now it's not getting compressed enough to fit in to the 2k reserved for saved code (there's more flash used outside of this for the Espruino firmware).
Best bet for the moment is to use the IDE's 'save to flash' method, which writes a textual version if your code into flash (rather than trying to image RAM)
Thanks @Gordon interesting reading.
I've tried the 'save to flash' method but get
>Uncaught Error: Module Storage not found at line 1 col 18 require("Storage").write(".bootcde","var on = true;\nfunctio...
Bizarrely enough the same code that was failing this morning to save() once sent to RAM isn't now erroring.
As I mentioned in my reply to your news post http://forum.espruino.com/conversations/354079/#15551980
I fixed it for you this morning. You just have to download it from http://www.espruino.com/binaries/travis/master/ and copy it on, and then it should work.
Hi, If I send code to the device's RAM (2v07.14) then enter save(); I get an error message stating that my code is too big to save to flash.
The error message doesn't appear when using 2v06.
The code is simple and is....
Details of 2v07.14
I've worked out that the code isn't minified on the device.
Is the ~2k flash for both firmware and code?