Hello,
I am trying to figure out how to save a small number of counters to local non-volatile memory on the nRF9160. I have a few questions.
1) How do I determine whether a section of memory is safe to use as storage? Can I just use any location from my storage or scratchpad partitions that I defined in my device tree files? Will that location be stable through a power-on-reset? Do I have to worry about the partitions moving address locations over time as my program changes? Do I need to worry about my application code overwriting that location?
2) How do I actually read and write that location? Are there limitations on reading and writing those locations? Is the Zephyr Flash Interface the best way to do this, or are there others? the Nordic NVMC seems to only allow writing and erasing.
I have looked at https://devzone.nordicsemi.com/f/nordic-q-a/61931/nrf9160-flash-access. It seems to support that I can use the Flash Interface, but it does not answer a number of my above questions.
I am using an nRF9160 on a custom board. SDK version 1.6.1.