Using FlashStorage library with Nano 33 BLE

hello everyone ,

I use the Arduino nano 33 BLE I would like to use the Bibliotheque <FlashStorage.h> but I receive this message from the compiler :

WARNING: Library FlashStorage claims to be able to run on samd architecture(s) and may be incompatible with your current board running on mbed architecture(s).

what does this mean?

please could someone help me to solve this difficulty

thank you very much

edjoo1234:
what does this mean?

It means the library was written for the boards of the SAMD architecture (e.g., MKR, Nano 33 IoT, Zero). It was not written for your Nano 33 BLE and there is no guarantee it will work on that board. If I remember correctly, someone found that this library can overwrite the bootloader on the Nano 33 BLE, which means you must go through a complex process to get the board back in a working condition. If you choose to use the library, be prepared to have problems. EDIT: I misremembered, it was actually the arduino-NVM library: board didn't work after uploaded a incompatility sketch [close] - Nano 33 BLE - Arduino Forum

ok thank you

the library doesn't work for nRF52 for sure. the NVM controller is different then on SAMD21

please do you know a better way to use the flash storage of the Arduino 33 BLE ??

which library can you recommend??

all Idee is welcome

thank you

Take a look at LittleFS in mbed, it should work on Nano (I've got KVStore working, and they should share the same foundation):
https://os.mbed.com/blog/entry/littlefs-high-integrity-embedded-fs/

If you need to store just a few configuration values, then of course you can also use KVStore. It works well and it is fairly simple to use. Look at the example here:
https://os.mbed.com/docs/mbed-os/v5.15/apis/kvstore.html