Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
v1.7.2 to use auto LittleFS size
Browse files Browse the repository at this point in the history
### Releases v1.0.2

1. Back to using auto LittleFS size to fix bug and to permit 8 LittleFS files instead of 4 in previous release. There is a bug somewhere in the [`ArduinoCore-mbed mbed_portenta core`](https://github.com/arduino/ArduinoCore-mbed) and we have to live with it.
  • Loading branch information
khoih-prog authored Sep 14, 2021
1 parent 001dd1d commit 1fe5853
Show file tree
Hide file tree
Showing 18 changed files with 171 additions and 204 deletions.
59 changes: 18 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@

## Table of Contents

* [Important Notes for Portenta_H7](#important-notes-for-portenta_h7)
* [Why do we need this LittleFS_Portenta_H7 library](#why-do-we-need-this-LittleFS_Portenta_H7-library)
* [Features](#features)
* [Currently supported Boards](#currently-supported-boards)
* [Changelog](#changelog)
* [Releases v1.0.1](#releases-v101)
* [Initial Releases v1.0.0](#initial-releases-v100)
* [Prerequisites](#prerequisites)
* [Installation](#installation)
* [Use Arduino Library Manager](#use-arduino-library-manager)
Expand All @@ -34,7 +32,6 @@
* [2. LittleFS_Test on PORTENTA_H7_M7](#2-littlefs_test-on-portenta_h7_m7)
* [Debug](#debug)
* [Troubleshooting](#troubleshooting)
* [Releases](#releases)
* [Issues](#issues)
* [TO DO](#to-do)
* [DONE](#done)
Expand All @@ -46,6 +43,17 @@
---
---

### Important Notes for Portenta_H7

The LittleFS of the new **Portenta_H7** board currently tested OK with only **maximum 8 files**. The files, from 9 and up, somehow strangely can't be written and / or read. This is possibly a bug in the [`ArduinoCore-mbed mbed_portenta core`](https://github.com/arduino/ArduinoCore-mbed). The same behaviour is observed from core v2.0.0 up to v2.4.1.

If LittleFS size is reduced to 1024KB, test is OK with only **maximum 4 files**.

Beware and keep cheking for updates.

---
---

### Why do we need this [LittleFS_Portenta_H7 library](https://github.com/khoih-prog/littlefs_portenta_h7)

## Features
Expand All @@ -63,19 +71,6 @@ The filesystem access uses normal [POSIX APIs](https://www.tutorialspoint.com/c_
---
---

## Changelog

### Releases v1.0.1

1. Change the default and minimum LITTLEFS_PORTENTA_H7_SIZE_KB to 1024KB, instead at maximum available size. This is done to avoid the cases where the code size is larger, and LittleFS size has to be changed, reformatted, leading to data loss.

### 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](https://github.com/arduino/ArduinoCore-mbed)


---
---

## Prerequisites

Expand Down Expand Up @@ -521,12 +516,10 @@ The following is the sample terminal output when running example [LittleFS_Count

```
Start LittleFS_Counting on PORTENTA_H7_M7
LittleFS_Portenta_H7 v1.0.1
LittleFS_Portenta_H7 v1.0.2
[LFS] Flash Size: (KB) = 2048.00
[LFS] FlashIAP Start Address: = 0x0x8080000
[LFS] New FlashIAP Start Address: = 0x0x8100000
[LFS] Max LittleFS size (KB) = 1536.00
[LFS] Current LittleFS size (KB) = 1024
[LFS] LittleFS size (KB) = 1536.00
[LFS] LittleFS Mount OK
Times have been run = 1
=> Open to write OK
Expand All @@ -536,12 +529,10 @@ Times have been run = 1

```
Start LittleFS_Counting on PORTENTA_H7_M7
LittleFS_Portenta_H7 v1.0.1
LittleFS_Portenta_H7 v1.0.2
[LFS] Flash Size: (KB) = 2048.00
[LFS] FlashIAP Start Address: = 0x0x8080000
[LFS] New FlashIAP Start Address: = 0x0x8100000
[LFS] Max LittleFS size (KB) = 1536.00
[LFS] Current LittleFS size (KB) = 1024
[LFS] LittleFS size (KB) = 1536.00
[LFS] LittleFS Mount OK
=> Open to read OK
Times have been run = 2
Expand All @@ -555,12 +546,10 @@ The following is the sample terminal output when running example [LittleFS_Test]

```
Start LittleFS_Test on PORTENTA_H7_M7
LittleFS_Portenta_H7 v1.0.1
LittleFS_Portenta_H7 v1.0.2
[LFS] Flash Size: (KB) = 2048.00
[LFS] FlashIAP Start Address: = 0x0x8080000
[LFS] New FlashIAP Start Address: = 0x0x8100000
[LFS] Max LittleFS size (KB) = 1536.00
[LFS] Current LittleFS size (KB) = 1024
[LFS] LittleFS size (KB) = 1536.00
[LFS] LittleFS Mount OK
====================================================
Writing file: /littlefs/hello1.txt => Open OK
Expand Down Expand Up @@ -639,18 +628,6 @@ Sometimes, the library will only work if you update the board core to the latest
---
---

## Releases

### Releases v1.0.1

1. Change the default and minimum LITTLEFS_PORTENTA_H7_SIZE_KB to 1024KB, instead at maximum available size. This is done to avoid the cases where the code size is larger, and LittleFS size has to be changed, reformatted, leading to data loss.

### 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](https://github.com/arduino/ArduinoCore-mbed)

---
---

### Issues

Expand Down
37 changes: 37 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# LittleFS_Portenta_H7 Library

[![arduino-library-badge](https://www.ardu-badge.com/badge/LittleFS_Portenta_H7.svg?)](https://www.ardu-badge.com/LittleFS_Portenta_H7)
[![GitHub release](https://img.shields.io/github/release/khoih-prog/LittleFS_Portenta_H7.svg)](https://github.com/khoih-prog/LittleFS_Portenta_H7/releases)
[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/khoih-prog/LittleFS_Portenta_H7/blob/main/LICENSE)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](#Contributing)
[![GitHub issues](https://img.shields.io/github/issues/khoih-prog/LittleFS_Portenta_H7.svg)](http://github.com/khoih-prog/LittleFS_Portenta_H7/issues)

---
---

## Table of Contents

* [Changelog](#changelog)
* [Releases v1.0.2](#releases-v102)
* [Releases v1.0.1](#releases-v101)
* [Initial Releases v1.0.0](#initial-releases-v100)

---
---

## Changelog

### Releases v1.0.2

1. Back to using auto LittleFS size to fix bug and to permit 8 LittleFS files instead of 4 in previous release. There is a bug somewhere in the [`ArduinoCore-mbed mbed_portenta core`](https://github.com/arduino/ArduinoCore-mbed) and we have to live with it.

### Releases v1.0.1

1. Change the default and minimum LITTLEFS_PORTENTA_H7_SIZE_KB to 1024KB, instead at maximum available size. This is done to avoid the cases where the code size is larger, and LittleFS size has to be changed, reformatted, leading to data loss.

### 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](https://github.com/arduino/ArduinoCore-mbed)



5 changes: 3 additions & 2 deletions examples/LittleFS_Counting/LittleFS_Counting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Portenta_H7
Licensed under MIT license
Version: 1.0.1
Version: 1.0.2
Version Modified By Date Comments
------- ----------- ---------- -----------
1.0.0 K Hoang 09/09/2021 Initial coding to support MBED Portenta_H7
1.0.1 K Hoang 13/09/2021 Select fix LittleFS size of 1024KB
1.0.2 K Hoang 14/09/2021 Back to using auto LittleFS to fix bug
*****************************************************************************************************************************/

#define _LFS_LOGLEVEL_ 1
Expand All @@ -28,7 +29,7 @@ LittleFS_MBED *myFS;
void setup()
{
Serial.begin(115200);
while (!Serial)
while (!Serial);

delay(1000);

Expand Down
Loading

0 comments on commit 1fe5853

Please sign in to comment.