NRF54L15 Internal Flash via NVS

I’m trying to read/write data to the internal flash of my nRF54L15 SoC using the NVS (Non-Volatile Storage) library.

I successfully flashed the sample nvs application on my nRF54L15 DK, and it works as expected.

However, when I try to integrate NVS into my own application, I added the following to my overlay file:

&flash0 {
    partitions {
        /* Set 3KB of storage at the end of 128KB flash */
        storage_partition: partition@1f400 {
            label = "storage";
            reg = <0x0001f400 DT_SIZE_K(3)>;
        };
    };
};

For which, i get the error - 

Node nvs_partition defined outside of root scope. Only reference nodes and the root node itself are allowed

I’m not sure how to define a flash partition correctly for NVS in my application overlay.

  • What is the correct way to define an NVS usable partition in an overlay file for the nRF54L15 SoC internal flash?

  • How can I write/read data at a specific flash address using NVS?

  • Are there any special considerations for NVS on nRF54L15 compared to other nRF SoCs

Parents Reply Children
No Data
Related