&flash0 {
partitions {
compatible = "fixed-partitions";
nvs_partition: partition@f8000 {
label = "nvs_storage";
reg = <0x000f8000 0x00002000>;
};
storage_partition: partition@fa000 {
label = "storage";
reg = <0x000fa000 0x00006000>;
};};};
Here is a short project to illustrate the issue. Enabling the #define FOTA causes NVS accesses to fail with ENOENT (no such file/directory).
Then, changing "storage" to "nvs_storage" in the nvs.c file, it will produce the above error during compilation.
Also, regardless of whether FOTA is disabled, after running awhile and then reset, the first several values may fail or be wrong, and then begin working correctly.
Note: I'm running the latest Zephyr 2.0.0 version on the NRF52840. (I have both the nrf8240DK and the nrf9160 with nrf52840)