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.

     

     

    .text loaded in SRAM

    Spresense
    ram memory usage edge-impulse optimization
    2
    2
    854
    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.
    • L
      leo 1 last edited by leo 1

      I'm currently working on a project which aim to recognize animal based on spresence camera (https://gitlab.com/wildcount/firmware-spresense-arduino). I use edge impulse to generate the model and i'm currently lacking of SRAM to instantiate the tensor arena.
      I've tried to see what is SRAM consuming in my project, so i used arduino-cli tool to generate the binary of the project. Then, I analyzed the .elf file with the command readelf and i was quite surprised by the result: b98ea1f5-987b-4e7f-9d13-21edd4c64411-image.png

      Here we can see that the .text section start at the adress 0x0d00000 which is the SRAM start adress. This .text section is usualy loaded in FLASH so i don't understand why in the spresense case, it's loaded in RAM.
      Do you know if there is a way to migrate this section to the FLASH to liberate space in SRAM?

      J 1 Reply Last reply Reply Quote
      • J
        jens6151 0 1 1 @leo 1 last edited by

        @leo-1
        Spresense loads the whole program into SRAM. This is how it works. I and others asked similar before.
        To my understanding, the issue is that Sony does not open up direct access from the application cores to the flash "because of security issue". There is a "system domain" in between that blocks direct access. So no XIP available.
        See for example https://forum.developer.sony.com/topic/698/access-spi-flash-via-memory-map

        In my opinion a serious flaw.

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