Hello,
I'm using the following setup:
- nRF Connect SDK v2.9.0
- B0, upgradable secure MCUBoot, and application
- Statically defined partitions in the partition manager
I have an external NOR flash of 4MB.
I'm storing a large amount of data (~4KB) in my external NOR flash, which will always be at the same offset in the flash.
Currently, I'm using flash_read
to retrieve the data, but it consumes a significant amount of RAM. I saw that XIP (Execute In Place) can be used for read-only purposes, but I can't find any samples or guidance on how to implement it.
Please note that I'm not referring to using XIP to run code from the external flash; all I need is a way to hold a pointer to data that is stored in it.
Could you provide any examples or hints on how to use XIP for accessing read-only data in external NOR flash without wasting RAM?
Thank you for your assistance.
Best regards,
Udi