Closed jwktje closed 2 years ago
@jwktje thank you for raising this issue.Please take a look at the following comments:
Could you add some more detail to the description? A good description should be at least 25 words. What target(s) are you using? What toolchain(s) are you using? What Mbed OS version are you using? It would help if you could also specify the versions of any tools you are using? How can we reproduce your issue?
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information.
I am not that familiar with kv-store, but I see you enabled flashiap and set TDB_INTERNAL
. Can you check if you are writing the data to the internal flash (check the address range and read back data) ? Then check what region are data being written and how it is defined in linker script (is anyone overwriting the data?) ?
@0xc0170 Is there another method I can/should use that you are more familiar with? I'm not committed to using kv-store. I just want to have any means of storing a single variable that is persisted after a power cycle.
you can use flash IAP : https://os.mbed.com/docs/mbed-os/v6.15/apis/flash-iap.html (check stress test that uses it)
I'll close this as not technical issue.
Hello ARMmbed,
I’m not sure this is the right place to ask this question but I don’t know where to start otherwise. So if anyone can guide me to the right resource, that would be great.
I’m using Mbed OS on the Lora-E5 from Seeed. All works great but I can’t get non volatile memory to work. I want to store 1 integer variable even after a power-cycle.
I tried adapting the KVstore examples into my code. And they work as long as the power is on. But after a power cycle the data is gone.
Below are the two functions I’m testing with.
And I’ve set the following configurations in mbed_app.json:
If anyone can point me into a direction of getting this to work that would be very much appreciated. Thanks in advance