In the list of features storage is mentioned “1MB internal Flash – For all of your program, SoftDevice, and file-storage needs!”, However I don’t see an example of usage. I have some variables I need to save and restore on power up. Does anyone have information on how to use the flash?
This is a good question and has to do with uploading directly to the MDBT50Q I believe. The MDBT50Q is based on the Nordic nRF52840 SoC solution, meaning that you could probably follow similar instructions on adding variables in the flash memory for the nRF52840 in the MDBT50Q , maybe. I am really not knowledgeable enough to confirm that these 2 devices will behave in a similar manner.
Try Googling “Nordic nRF52840 store variable in flash” or “store variable in flash MDBT50Q” and see what folks are talking about. There seems to be and SDK associated with Nordic devices that may allow you to accomplish what you are trying to do. There are several posts talking about this and I am uncertain which one to provide specifically.
FDS(Flash Data Storage) associated with the Nordic SDK might be worth looking into, as well.
I hope this helps.
Thanks, I’ll do some more searching and hopefully report back soon.
Success! after searching around for a couple of hours and then testing, I’m able to store and retrieve the variables needed and I can go back in the tech cave again.
This is the BLE example that uses the “little file system” LFS that Adafruit included in the core since 0.9.0 and I’m using 0.9.3 version.
https://gist.github.com/stonehippo/ffbe … dd22062636
-
Review #include <Bluefruit_FileIO.h> in your local core install and the example code link to make your own tests.
-
Use the format once or whenever you want to start blank.
-
Total storage space appears to be 28KB
Awesome! I an glad to hear that you have successfully been able to use the extra flash memory to store some variables and that you are able to continue with your project.
Thanks for sharing on our forums and please let use know if we can assist with anything else!