EEPROM Opta Advance

Hi Guys,
accustomed with Arduino MEGA, I found that unfortunately in the Arduino Opta there is no internal eeprom.
I read the official article, having immense difficulty Reading and Writing Flash Memory ma è davvero complesso per me capirne il significato.
Purtroppo OPTA pur avendo l'I2C non è possibile configurarlo. Altrimenti potevo risolvere utilizzando la mia amata library EEPROM by connecting an external eeprom in I2C.
I've had my OPTA for two days and connected it to my Arduino cloud.
I wonder, would it be possible that when the Arduino is turned on it first reads the latest data sent to the cloud so as to overwrite it internally and then continue updating the data in the cloud?
I really need to save critical data for my project in an EEPROM like I did with my Arduino MEGA but it seems like I can't figure it out anymore...
please, I ask for your help!

Hi!
Check https://docs.arduino.cc/tutorials/portenta-h7/reading-writing-flash-memory/

I managed to write and read data from the OPTA flash memory. In case of a change in the device state, writing occurs at a specified minimum time interval. Reading is performed in the setup function, thus during the device startup. I am using the FlashIAP and FlashIAPLimits libraries that I found on GitHub for this purpose.

another possible way is to partition the QSPI flash with a dedicated partition used only to save values.
there's a library that facilitate the read / write ops (that BTW supports not only Flash but also external USB mass storage device)

1 Like

Hello everyone
I also used the Arduino_UnifiedStorage library to write Json strings on the flash memory to save variables that I wanted to find when restarting the system, and as long as I was locally I didn't encounter any problems.
As soon as I put the application in the cloud I had to remove the Arduino_UnifiedStorage library because there is some conflict with the cloud libraries that prevent its use.
Has anyone solved the problem?

Greetings Claudio