Gordon, unfortunately Esprima minification is causing me some real issues, sometimes modules that I want it to load from disk just won't load, then the next time I try to flash they will load, and the time after they will be gone again.
For now I've turned off all minification, but now I've come up against a memory limit while trying to flash.
If I don't require the final module I'm trying to flash, I get the following output:
Erasing Flash...
Writing...................................
Compressed 114368 bytes to 33031
Checking...
Done!
Loading 33031 bytes from flash...
which indicates to me I'm using 33kb of flash, well below the 512kb flash or even the 128kb ram that the Espruino WiFi has.
When I require my final module, which has a size on disk of 16kb, I then get
ERROR: Out of Memory!
Uncaught SyntaxError: Got UNFINISHED STRING expected EOF
at line 1 col 15
E.setBootCode("Modules.removeAllCached();\nModules.addCached...
but unless my maths is wrong, the 33kb it reports before, + 16kb is only 49kb, still well below 128kb.
I have save-on-send switched on, and I've tried "Modules uploaded as Functions (BETA)" both on and off.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Gordon, unfortunately Esprima minification is causing me some real issues, sometimes modules that I want it to load from disk just won't load, then the next time I try to flash they will load, and the time after they will be gone again.
For now I've turned off all minification, but now I've come up against a memory limit while trying to flash.
If I don't require the final module I'm trying to flash, I get the following output:
which indicates to me I'm using 33kb of flash, well below the 512kb flash or even the 128kb ram that the Espruino WiFi has.
When I require my final module, which has a size on disk of 16kb, I then get
but unless my maths is wrong, the 33kb it reports before, + 16kb is only 49kb, still well below 128kb.
I have save-on-send switched on, and I've tried "Modules uploaded as Functions (BETA)" both on and off.
Is there something I'm missing?