Good morning everyone,
I am writing because I cannot persist data on Opta Finder Pro. From the documentation I found online I understood that it is possible to save variables persistently on the device. It would be convenient for me to save the wifi credentials (so a text representing the password would be sufficient).
It should be possible through the LittleFSManager.h library.
I tried this program:
#include "LittleFSManager.h"
void setup() {
Serial.begin(115200);
if (!initLittleFS()) return;
String miavar = readVariable("miavar");
if (miavar == "") {
while (Serial.available() == 0);
miavar = Serial.readStringUntil('\n');
miavar.trim();
saveVariable("miavar", miavar);
NVIC_SystemReset();
}
}
void loop() {
if (readVariable("miavar") != "") {
Serial.println("password impostata");
delay(5000);
}
}
The compilation does not give errors, but once started the device goes into protection (red LED blinking).
This microcontroller came to me by chance, I would like to play with it a bit, do you know if it is possible to persist data on the device?
The Arduino Opta Finder Pro uses the STM32H747XI microcontroller from STMicroelectronics.
Obviously I wouldn't want to use an external SD.