-
Not really, most of flash and memory is utilised by Espruino.
If yousave()
your code, it's saved to flash, but still uses some memory. But less than executing directly from memory.
To get the available free memory, useprocess.memory()
. Thefree
is the available memory in Espruino's "jsVars". If storage matters, take a look at typed arrays: (U)Int8Array, (U)Int16Array.
You can qurey the available flash with Storage.getFree it's about 40k on the Puck.Or add an SD card, and you have as much space as big your SD card is. And it's easier to read: Just pop in your computer, and read it!
Hi,
I used the Data Collection example from:
https://www.espruino.com/Data+Collection
If I save the example code with save(); I get this result:
Compressed 36000 bytes to 2643
Which is saved to RAM if I'm correct. There is 64kB of RAM available, so this we will have plenty of room left.
There is 512kB Flash memory as well.
Does this mean I have 512kB of Flash memory available for data collection?
Thanks, Regards, Peter