LittleFS_Portenta_H7 Library for Portenta_H7 using LittleFS

LittleFS_Portenta_H7 library GitHub release
How To Install Using Arduino Library Manager


Features

This library is just a simple LittleFS wrapper to facilitate your usage of LittleFS for the onboard flash on MBED Portenta_H7, using ArduinoCore-mbed mbed_portenta core

The filesystem access uses normal POSIX APIs or mbed FileSystem APIs


Currently supported Boards

  1. Portenta_H7 boards such as Portenta_H7 Rev2 ABX00042, etc., using ArduinoCore-mbed mbed_portenta core


Changelog

Initial Releases v1.0.0

  1. Initial coding to support Portenta_H7 boards such as Portenta_H7 Rev2 ABX00042, etc., using ArduinoCore-mbed mbed_portenta core

Examples:

  1. LittleFS_Counting
  2. LittleFS_Test

Debug Terminal Output Samples

LittleFS_Test on PORTENTA_H7_M7

The following is the sample terminal output when running example LittleFS_Test on MBED PORTENTA_H7_M7

Start LittleFS_Test on PORTENTA_H7_M7
LittleFS_Portenta_H7 v1.0.0
[LFS] Flash Size: (KB) = 2048.00
[LFS] FlashIAP Start Address: = 0x0x8080000
[LFS] LittleFS size (KB) = 1536.00
[LFS] LittleFS Mount OK
====================================================
Writing file: /littlefs/hello1.txt => Open OK
* Writing OK
====================================================
Reading file: /littlefs/hello1.txt => Open OK
Hello from PORTENTA_H7_M7
====================================================
Appending file: /littlefs/hello1.txt => Open OK
* Appending OK
====================================================
Reading file: /littlefs/hello1.txt => Open OK
Hello from PORTENTA_H7_M7
Hello from PORTENTA_H7_M7
====================================================
Renaming file: /littlefs/hello1.txt to: /littlefs/hello2.txt => OK
====================================================
readCharsFromFile: /littlefs/hello2.txt => Open OK
Hello from PORTENTA_H7_M7
Hello from PORTENTA_H7_M7
====================================================
Deleting file: /littlefs/hello2.txt => OK
====================================================
Reading file: /littlefs/hello2.txt => Open Failed
====================================================
Testing file I/O with: /littlefs/hello1.txt => Open OK
- writing

64 Kbytes written in (ms) 957
====================================================
- reading

384 Kbytes read in (ms) 0
====================================================
Testing file I/O with: /littlefs/hello2.txt => Open OK
- writing

64 Kbytes written in (ms) 980
====================================================
- reading

64 Kbytes read in (ms) 1
====================================================
Deleting file: /littlefs/hello1.txt => OK
====================================================
Deleting file: /littlefs/hello2.txt => OK
====================================================

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.