From 94d110f7d1da89cbfe8e29e555a8efb7917baa71 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:17:02 +0200 Subject: [PATCH 1/4] Clarify instructions for STM32 boards. Remove GIGA --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26ea280..f7d6669 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ The Arduino_UnifiedStorage library provides a unified interface to access differ 2. Check compatibility with your platform 3. To use internal storage, you need to make sure it is partitioned and formatted correctly: -### Formatting the Portenta H7 Internal Storage -* Flash the `QSPIFormat` example that can be found in the `STM32H747_System` folder (For Portenta H7/Opta/Giga) +### Formatting the Portenta H7 / Portenta Machine Control / Opta Internal Storage +* Flash the `QSPIFormat` example that can be found in the `STM32H747_System` folder * Open the serial monitor and select answer with "n" when this appears "Do you want to use partition scheme 1? Y/[n]" * The sketch will warn you that the content of the QSPI flash will be erased. Answer with "Y". * When asked if you'd like to use LittleFS on the data partition, select "n". Most of the examples assume that the drive is formatted as FAT. You can use the library to format to LittleFS later. From 431a602b459585a36897b0e7953019b144285102 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:19:46 +0200 Subject: [PATCH 2/4] Reduce scope of compatibility to tested boards --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7d6669..30ebd6d 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ The Arduino_UnifiedStorage library provides a unified interface to access differ * Format partitions and drives (FAT and LittleFS) ## Compatibility -This library is compatible with STM32 and Renesas based Arduino boards. The availability of storage mediums depends on the hardware interfaces: +This library has been tested with the following STM32 and Renesas based Arduino boards. The availability of storage mediums depends on the hardware interfaces: * Portenta Machine Control: USB and Internal QSPI Flash * Portenta H7 + Portenta Breakout: USB, SD, and QSPI * Portenta H7 + Vision Shield: SD and QSPI From eacc4a829a74183d881a1a63c9c3f27fa070abd5 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:20:04 +0200 Subject: [PATCH 3/4] Add Opta to compatibility list --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 30ebd6d..0fb707a 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,5 @@ This library has been tested with the following STM32 and Renesas based Arduino * Portenta H7 + Vision Shield: SD and QSPI * Portenta C33 + Portenta Breakout: USB, SD, and QSPI * Portenta C33 + Vision Shield: SD and QSPI +* Opta: Internal QSPI Flash and USB + From 04d4dbb7de0b337d473157e5e3d020e54634f549 Mon Sep 17 00:00:00 2001 From: Ali Jahangiri <75624145+aliphys@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:34:44 +0200 Subject: [PATCH 4/4] Simplify example one-liners in the README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0fb707a..bed6a85 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ The Arduino_UnifiedStorage library provides a unified interface to access differ ## Examples -* [**examples/SimpleStorageWriteRead**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/SimpleStorageWriteRead/SimpleStorageWriteRead.ino) - this example is concerned with reading/writing and seeking -* [**examples/AdvancedUSBInternalOperations**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/AdvancedUSBInternalOperations/AdvancedUSBInternalOperations.ino) - this example is concerned with more advanced features like creating folders, traversing folder structures and moving/copying from one storage medium to another -* [**examples/PortentaH7Logger**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/PortentaH7Logger/PortentaH7Logger.ino) - this is more of a real life usecase, where this library is used to log sensor data to a file on the internal storage and check if a USB Mass Storage device is inserted. If it is detected it will backup the information on the internal storage, only copying the bytes that are new since the last update. -* [**examples/BackupInternalPartitions**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/BackupInternalPartitions/BackupInternalPartitions.ino) - Another real life usecase, where this library is used to back-up all partitions on the internal storage to a USB Mass Storage device. +* [**examples/SimpleStorageWriteRead**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/SimpleStorageWriteRead/SimpleStorageWriteRead.ino) - Write/read simple data from SD, USB and internal storage +* [**examples/AdvancedUSBInternalOperations**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/AdvancedUSBInternalOperations/AdvancedUSBInternalOperations.ino) - Navigate file structure and demonstrate file operations between USB and internal storage +* [**examples/PortentaH7Logger**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/PortentaH7Logger/PortentaH7Logger.ino) - Log analog input to the Portenta H7 with timestamp, then save to internal storage and backup to USB (if detected) +* [**examples/BackupInternalPartitions**](https://github.com/arduino-libraries/Arduino_UnifiedStorage/blob/main/examples/BackupInternalPartitions/BackupInternalPartitions.ino) - Back up all partitions on the internal storage to a USB Mass Storage device. ## Instructions 1. Download and install this library