Free memory used for static ?

Posted on
  • Got an ESP32 wrover board and tried to get Espruino running.
    Main idea was to use additional PSRAM for jsvars.
    Problem is, I ran into memory problems, exactly the problem I tried to avoid :-(
    Espressif told this:

    What happened here is that you have filled up your internal memory
    with static variables up to the point where there is no room anymore
    for the 32K pool of reserved DMA memory.

    I've in mind about a similiar problem (for ESP8266 ?).
    Any idea, what I can do ?

  • Espruino uses a statically allocated block of memory for all its variables. There's no point having 2000 variables if you can't actually use them because the memory has been allocated for something else!

    All you can do is reduce the amount of JsVars that are used so you don't use up all your memory.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Free memory used for static ?

Posted by Avatar for JumJum @JumJum

Actions