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
-
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: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? -
@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-mapIn my opinion a serious flaw.