Re: NVS corrupt after applying sys_reboot() directly after nvs_write() #nrf52840


Phil Hipp
 

Alright, I fixed that issue by splitting the predefined flash storage partition (storage_partition) in the board's dts in half. Leaving the name of the first one as is and naming the second one storage_partition_nvs. I now have following layout:

- storage_partiton - size 0x2000 - used by FCB.
- storage_partiton_nvs - size 0x2000 - used by NVS.

Hope this will work.

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