I read that the Pico has 96 kb of RAM. So I would expect I could use round about 6000 JSVars.
What I can see when I call process.memory() is, that I just can use 3040 JSVars which must be 48kb. This is less than what I could use with the regular Espruino with a Bigram Build. There I have 3250 JSVars.
This is a major problem for me now. I have a highly complex application which was working with the CC3000 module and the Bigram Build on the Espruino near to the RAM limit. I switched to the Pico to have the additional RAM (total 96kb) so that I am able to use a JS-based driver for GPRS. When I now load the driver together with the rest of my application I run out of memory. Is there a possibility to use more than 3040 JSVars on the Pico? Maybe with a special build?
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.
Hello Gordon,
I read that the Pico has 96 kb of RAM. So I would expect I could use round about 6000 JSVars.
What I can see when I call process.memory() is, that I just can use 3040 JSVars which must be 48kb. This is less than what I could use with the regular Espruino with a Bigram Build. There I have 3250 JSVars.
This is a major problem for me now. I have a highly complex application which was working with the CC3000 module and the Bigram Build on the Espruino near to the RAM limit. I switched to the Pico to have the additional RAM (total 96kb) so that I am able to use a JS-based driver for GPRS. When I now load the driver together with the rest of my application I run out of memory. Is there a possibility to use more than 3040 JSVars on the Pico? Maybe with a special build?
Best,
Tobias