Hello,
I want to write and later read the data stored in the nRF9160 flash.
For this I am starting from the NVS sample, I could verify that everything works perfectly and the data is kept in the non-volatile memory, keeping the storage even after turning off the device.
But I noticed that if the firmware is updated (VS Code), the data is erased and it is not possible to recover them after reprogramming the device.
I would like to know how it is possible to get around this, should I create a new memory partition for this data? Is the default NVS partition (storage) not enough for this?
Please, I would like to get information or examples, how to keep the data in the flash even after writing a new firmware.
I am using NCS 2.0.0 and nRF9160, the tests were performed with the NVS sample without changes.