How to free memory after required modules #245
Replies: 6 comments
-
Posted at 2014-03-27 by @gfwilliams Sure, just use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by JumJum There may be a misunderstanding. I want to free memory.
Process.memory() returns usage 329
Process.memory() returns usage 331
Process.memory() returns usage 330
returns unable to read file no path |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-27 by @gfwilliams No misunderstanding - I think there might be a bug in Espruino - I'll look into it. If you try a different module it works as I suggested:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-28 by JumJum Great, just tested nightly build and it works fine. What I'm doing now is to use something like this:
Next test will be to split an application into modules which are loaded and unloaded by a main application. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-28 by @gfwilliams Great! So are you actually running out of space, or is this 'just in case'? By the way, you can also do Espruino is designed so that it can 'page' variables and code out to flash - potentially giving it massively more available memory. It could be a fun project for someone :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-03-28 by JumJum I ran out of memory by creating an extended module for ILI9341 and adding simple charts, so called "PicoChart". SPI.send ran out of memory during processing. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-03-27 by JumJum
Is there a way to free memory for unused parts, loaded with require ?
This could help for:
Beta Was this translation helpful? Give feedback.
All reactions