-
-
Notifications
You must be signed in to change notification settings - Fork 212
EEPROM emulation #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @sstaub ,
Or even use filesystems; you can find more examples in this thread arduino/ArduinoCore-nRF528x-mbedos#16 |
Thank you for the advices. |
Problem I've found with KVSTORE is that it doesn't support integers or any numerical values, only strings (more specifically char*). This is a real problem when wanting to store any data in a non-volatile manner. Are there any lightweight solutions to this? |
@rmlearney-digicatapult I'm not an expert on this, but as no one has answered I'll try and help. You can use the Block Device functions with different types of variable, not just char*. For example if you've got:
you can save them all with the sequence:
and load them back in with:
The sizes all need to be in bytes. I'm not sure how long the keys can be; I've chosen four characters. |
Hi @facchinm, I was studying and try to implement a code you suggested at [Implementation of files read/write on flash memory.] discussion. Employing your example code, given there, in application I try to create, I got some error codes, like -22, 33. My question is: Where I can find the meaning of the code errors? Sorry I am asking here, since the mentioned discussion is closed! Thank you! |
Hey @lyomov, |
Thanks a lot!!! I'll have a look. Best wishes! |
I'm missing an EEPROM emulation like on STM32duino
The text was updated successfully, but these errors were encountered: