Bluetooth: about using of NVS & setting Layer in single App


vikrant8051 <vikrant8051@...>
 

Hi,

I've modified nrf52840_pca10056.dts as follow ......

&flash0 {
    /*
     * For more information, see:
     * http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
     */
    partitions {
        compatible = "fixed-partitions";
        #address-cells = <1>;
        #size-cells = <1>;

        boot_partition: partition@0 {
            label = "mcuboot";
            reg = <0x000000000 0x0000C000>;
        };
        slot0_partition: partition@c000 {
            label = "image-0";
            reg = <0x0000C000 0x000069000>;
        };
        slot1_partition: partition@75000 {
            label = "image-1";
            reg = <0x00075000 0x000069000>;
        };
        scratch_partition: partition@de000 {
            label = "image-scratch";
            reg = <0x000de000 0x0001B000>;
        };

        nvs_partition: partition@f9000 {
            label = "storage";
            reg = <0x000f9000 0x00003000>;
        };


#if defined(CONFIG_FS_FLASH_STORAGE_PARTITION)
        storage_partition: partition@fc000 {
            label = "storage";
            reg = <0x000fc000 0x00004000>;
        };
#endif
    };
};

That means some part of scratch partition will get utilize ( 12 KB) for #NVS storage.
After this I've to set #define NVS_STORAGE_OFFSET 0xF9000

Is it correct strategy to save App level data on SoC flash without disturbing
#settings_layer data as well feature of #FOTA ?

Thank You !!


Join devel@lists.zephyrproject.org to automatically receive all group messages.