From 8c27fdec4cf1ed27a1b943346a35dcc8a7ad77bf Mon Sep 17 00:00:00 2001 From: fabik111 Date: Tue, 28 Oct 2025 15:36:16 +0100 Subject: [PATCH] use LittleFS for Opta user's partition --- src/flashFormatter/FlashFormatterQSPI.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/flashFormatter/FlashFormatterQSPI.h b/src/flashFormatter/FlashFormatterQSPI.h index ad070bf..815d9e9 100644 --- a/src/flashFormatter/FlashFormatterQSPI.h +++ b/src/flashFormatter/FlashFormatterQSPI.h @@ -10,6 +10,9 @@ #include #include #include +#ifdef ARDUINO_OPTA +#include +#endif #if !defined(ARDUINO_PORTENTA_C33) using namespace mbed; @@ -36,7 +39,12 @@ class FlashFormatterQSPI : public FlashFormatterBase { FATFileSystem _otaFS; MBRBlockDevice _kvstoreData; MBRBlockDevice _runtimeData; +#ifdef ARDUINO_OPTA + // For compatibility with Opta's PLC runtime, use LittleFS + LittleFileSystem _runtimeFS; +#else FATFileSystem _runtimeFS; +#endif bool _runtimeFormat; };