I am looking for a simple sketch exemple to save int, float, etc. variables in the external memory (QSPI Flash) of the GIGA R1 when it is shut down.
But I only find very complicated things (I am not an IT specialist) that do not correspond to my simple need
Hi @claudius310. Maybe you will find the technique shared here to be useful:
There is a more simplified (but also not as specifically relevant to your request due to only working with a string) demonstration here:
Even though those discussions were about other boards, they are equally applicable to the GIGA R1 WiFi since it also uses the Mbed OS operating system that provides the KVStore API.
Hello,
Thanks for your help
I have read the various articles, but the implementation seems difficult for me. I do not have the knowledge and skills to carry out all these developments.
Several examples and libraries would be needed to facilitate this.
Jean Claude
Yeah. Unfortunately the Mbed OS API does tend to be less approachable than what we are used to in the Arduino ecosystem.
The resources and support network are available for you to gain the knowledge and skills if you want it. It will take perseverance to get there, but I'm confident you can if you dedicate yourself to it. But of course that is entirely up to you. It is completely understandable if you don't think it is interesting or valuable enough to be worth the effort and headaches.
I provided you with three examples (there are two at the first link). My recommendation is to start by simply uploading them to your GIGA R1 WiFi board and verifying they work as you expect them to. After that, make some arbitrary modifications to the sketch to change its behavior, upload, then verify the behavior is as you expected. Don't worry about how it will integrate into your real project at this point; just play around with KVStore until you get comfortable with it.
If you get stuck or have specific questions along the way, you can come back here to the forum and get assistance from the helpers.
I'm not aware of any Arduino libraries related to this use case. Sometimes you just have to make do with the tools you have at hand.
Hello,
Thanks for your help
To unlock my project, I am going to use an external FRAM MB85RC256V memory from Adafruit which allows very large read-write cycles byte by byte to store variables or data when the power is cut. But it's a shame to have a nice card like the GIGA R1 with integrated memory that could do this and have to use another memory with additional wires, but which has a library that is easily accessible with a minimum of knowledge.
Thanks again for your help
Jean Claude