Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    How to use all 1.5 MB RAM instead of default 768KB

    Spresense
    2
    4
    1123
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yokonav last edited by

      In the documentation it says:
      "The maximum RAM available is 768 kilobytes (= 786432 bytes) by default. Which is half of the size of application SRAM of 1.5 MB."
      So how can I use all 1.5MB RAM in an Arduino sketch?

      1 Reply Last reply Reply Quote
      • TE-KarlKomierowski
        TE-KarlKomierowski DeveloperWorld last edited by TE-KarlKomierowski

        Hi @yokonav,

        The size of the RAM mounted on the Spresense mainboard is 1.5MB. But the operating system, Nuttx, needs a bit of this to be able to function properly. I think it is around 3-500kb that is consumed by Nuttx. Then the Arduino layer need a bit of the RAM too. Then there is the GNSS firmware that consumes some RAM too.
        So the full 1.5MB can't be used for an application.
        If you really need more ram for your sketch it should be possible to reconfigure the kernel and remove functions/drivers that aren't needed for your specific application.

        Hope this answer clarifies your question.

        BR
        Karl

        1 Reply Last reply Reply Quote
        • Y
          yokonav last edited by yokonav

          Thanks for the clarification! Can we run bare-metal applications on Spresense (for example only Arduino)?

          TE-KarlKomierowski 1 Reply Last reply Reply Quote
          • TE-KarlKomierowski
            TE-KarlKomierowski DeveloperWorld @yokonav last edited by

            @yokonav my short answer with a bit of guessing is that this should be possible but it would be close to impossible to get certain parts to get to work, like GNSS that is provided as a binary.
            BR
            Karl

            1 Reply Last reply Reply Quote
            • First post
              Last post
            Developer World
            Copyright © 2021 Sony Group Corporation. All rights reserved.
            • Contact us
            • Legal