I see that the NVStore API is deprecated in favor of the KVStore API. The closest analog seems to be a TDBStore with a FlashIAPBlockDevice. Is there documentation for porting code and migrating existing devices with data in the NVStore?
I’m also wondering if there’s a global singleton KVStore, to replace NVStore::get_instance();.
@arm-staff Just wanted to bump this.
I am not arm staff, but I have just done the migration. You have two options:
- Use “kvstore_global_api.h” and look at the example here “https://github.com/ARMmbed/mbed-os-example-kvstore”
- Look at how “kvstore_global_api.cpp” and adapt it to your program. You can see that KVmap can get you the singleton you asked.
I choose the first route since it’s easier to use.