Available RAM and Flash

Posted on
  • Is there a way to see how much RAM is available? I am running an STM32F407.

  • I tried and get

    process.memory()
    ={"free":5434,"usage":16,"total":5450,"h­istory":0,"stackEndAddress":536981840,"}­
    I have 5450 bytes of RAM available of 192k?

  • There's a bit of information about this on the website (for instance http://www.espruino.com/Performance), but basically you have 5450 * 16 bytes = 87200 bytes available.

  • thanks, on the espruino board with 48k, what is the expected available?

  • 2250 * 16 = 36000 bytes

    Basically you could squeeze a lot more out of the STM32F407, but as all I get is trouble if something goes wrong I tend to stick with very safe defaults.

    Anyone's free to tweak and compile their own version with increased memory limits though.

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

Available RAM and Flash

Posted by Avatar for tobor @tobor

Actions