From 21c7ac23d3b6dabd1a8e6056c5a9192941d4a026 Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Mon, 16 Aug 2021 16:03:39 -0400 Subject: [PATCH] v1.0.1 ### Releases v1.0.1 1. Fix bug in example 2. Change default RP2040_FS_SIZE_KB from 256KB to 64KB to avoid crash in some new boards. Check [MBED crash - RP2040 rebooting #1](https://github.com/khoih-prog/LittleFS_Mbed_RP2040/issues/1) --- CONTRIBUTING.md | 6 ++--- README.md | 27 +++++++++++++------ .../LittleFS_Counting/LittleFS_Counting.ino | 8 +++--- examples/LittleFS_Test/LittleFS_Test.ino | 9 ++++--- library.json | 4 +-- library.properties | 2 +- src/LittleFS_Mbed_RP2040.h | 5 ++-- src/LittleFS_Mbed_RP2040.hpp | 3 ++- src/LittleFS_Mbed_RP2040_Debug.h | 3 ++- src_cpp/LittleFS_Mbed_RP2040.cpp | 3 ++- src_cpp/LittleFS_Mbed_RP2040.h | 5 ++-- src_cpp/LittleFS_Mbed_RP2040_Debug.h | 3 ++- src_h/LittleFS_Mbed_RP2040.h | 5 ++-- src_h/LittleFS_Mbed_RP2040.hpp | 3 ++- src_h/LittleFS_Mbed_RP2040_Debug.h | 3 ++- 15 files changed, 56 insertions(+), 33 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ae3a751..559eed8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p Please ensure to specify the following: * Arduino IDE version (e.g. 1.8.15) or Platform.io version -* `Arduino mbed_rp2040` Core Version (e.g. Arduino mbed_rp2040 core v2.1.0) +* `Arduino mbed_rp2040` Core Version (e.g. Arduino mbed_rp2040 core v2.4.1) * `RP2040` Board type (e.g. Nano_RP2040_Connect, RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040, GENERIC_RP2040, etc.) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce @@ -28,10 +28,10 @@ Please ensure to specify the following: ``` Arduino IDE version: 1.8.15 -Arduino mbed_rp2040 core v2.1.0 +Arduino mbed_rp2040 core v2.4.1 RASPBERRY_PI_PICO board OS: Ubuntu 20.04 LTS -Linux xy-Inspiron-3593 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux +Linux xy-Inspiron-3593 5.4.0-81-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Context: I encountered a crash while using TimerInterrupt. diff --git a/README.md b/README.md index 3bf4096..6e18671 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ * [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) @@ -62,6 +63,11 @@ The filesystem access uses normal [POSIX APIs](https://www.tutorialspoint.com/c_ ## Changelog +### Releases v1.0.1 + +1. Fix FORCE_REFORMAT bug in example +2. Change default RP2040_FS_SIZE_KB from 256KB to 64KB to avoid crash in some new boards. Check [MBED crash - RP2040 rebooting #1](https://github.com/khoih-prog/LittleFS_Mbed_RP2040/issues/1) + ### Initial Releases v1.0.0 1. Initial coding to support RP2040-based boards such as **Nano_RP2040_Connect, RASPBERRY_PI_PICO**, etc. using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed) @@ -73,7 +79,7 @@ The filesystem access uses normal [POSIX APIs](https://www.tutorialspoint.com/c_ ## Prerequisites 1. [`Arduino IDE 1.8.15+` for Arduino](https://www.arduino.cc/en/Main/Software) -2. [`Arduino mbed_rp2040 core 2.1.0+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) +2. [`Arduino mbed_rp2040 core 2.4.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino (Use Arduino Board Manager) RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) --- --- @@ -143,11 +149,11 @@ To re-use the **new h-only** way, just ``` #define _LFS_LOGLEVEL_ 1 -#define RP2040_FS_SIZE_KB 256 +#define RP2040_FS_SIZE_KB 64 -#include +#define FORCE_REFORMAT false -#define FORCE_REFORMAT false +#include LittleFS_MBED *myFS; @@ -476,7 +482,7 @@ The following is the sample terminal output when running example [LittleFS_Count ``` Start LittleFS_Counting on RaspberryPi Pico -LittleFS_Mbed_RP2040 v1.0.0 +LittleFS_Mbed_RP2040 v1.0.1 [LFS] LittleFS size (KB) = 256 [LFS] LittleFS Mount OK Deleting file: /littlefs/counts.txt => OK @@ -484,7 +490,7 @@ Times have been run = 1 => Open to write OK Start LittleFS_Counting on RaspberryPi Pico -LittleFS_Mbed_RP2040 v1.0.0 +LittleFS_Mbed_RP2040 v1.0.1 [LFS] LittleFS size (KB) = 256 [LFS] LittleFS Mount OK => Open to read OK @@ -492,7 +498,7 @@ Times have been run = 2 => Open to write OK Start LittleFS_Counting on RaspberryPi Pico -LittleFS_Mbed_RP2040 v1.0.0 +LittleFS_Mbed_RP2040 v1.0.1 [LFS] LittleFS size (KB) = 256 [LFS] LittleFS Mount OK => Open to read OK @@ -507,7 +513,7 @@ The following is the sample terminal output when running example [LittleFS_Test] ``` Start LittleFS_Test on RaspberryPi Pico -LittleFS_Mbed_RP2040 v1.0.0 +LittleFS_Mbed_RP2040 v1.0.1 [LFS] LittleFS size (KB) = 256 [LFS] LittleFS Mount OK ==================================================== @@ -592,6 +598,11 @@ Sometimes, the library will only work if you update the board core to the latest ## Releases +### Releases v1.0.1 + +1. Fix FORCE_REFORMAT bug in example +2. Change default RP2040_FS_SIZE_KB from 256KB to 64KB to avoid crash in some new boards. Check [MBED crash - RP2040 rebooting #1](https://github.com/khoih-prog/LittleFS_Mbed_RP2040/issues/1) + ### Initial Releases v1.0.0 1. Initial coding to support RP2040-based boards such as **Nano_RP2040_Connect, RASPBERRY_PI_PICO**, etc. using [**Arduino-mbed RP2040** core](https://github.com/arduino/ArduinoCore-mbed) diff --git a/examples/LittleFS_Counting/LittleFS_Counting.ino b/examples/LittleFS_Counting/LittleFS_Counting.ino index 0a15ea2..f08ef8a 100644 --- a/examples/LittleFS_Counting/LittleFS_Counting.ino +++ b/examples/LittleFS_Counting/LittleFS_Counting.ino @@ -7,19 +7,21 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #define _LFS_LOGLEVEL_ 1 -#define RP2040_FS_SIZE_KB 256 +#define RP2040_FS_SIZE_KB 64 + +#define FORCE_REFORMAT false #include -#define FORCE_REFORMAT false #define START_COUNT_OVER false LittleFS_MBED *myFS; diff --git a/examples/LittleFS_Test/LittleFS_Test.ino b/examples/LittleFS_Test/LittleFS_Test.ino index b029877..e86d734 100644 --- a/examples/LittleFS_Test/LittleFS_Test.ino +++ b/examples/LittleFS_Test/LittleFS_Test.ino @@ -7,19 +7,20 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #define _LFS_LOGLEVEL_ 1 -#define RP2040_FS_SIZE_KB 256 +#define RP2040_FS_SIZE_KB 64 -#include +#define FORCE_REFORMAT false -#define FORCE_REFORMAT false +#include LittleFS_MBED *myFS; diff --git a/library.json b/library.json index 65cb610..26688aa 100644 --- a/library.json +++ b/library.json @@ -1,7 +1,7 @@ { "name": "LittleFS_Mbed_RP2040", - "version": "1.0.0", - "keywords": "storage, data-storage, littlefs, posix, file-system, file, mbed, mbed-rp2040, nano-rp2040-connect, raspberry-pico, rpi-pico, pico, rp2040", + "version": "1.0.1", + "keywords": "storage, data-storage, littlefs, littlefs-mbed, flash, flash-storage, posix, file-system, file, mbed, mbed-rp2040, nano-rp2040-connect, raspberry-pico, rpi-pico, pico, rp2040", "description": "This library facilitates your usage of LittleFS for the onboard flash. LittleFS supports power fail safety and high performance", "authors": { diff --git a/library.properties b/library.properties index 0871b57..54988d2 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=LittleFS_Mbed_RP2040 -version=1.0.0 +version=1.0.1 author=Khoi Hoang maintainer=Khoi Hoang sentence=Wrapper of LittleFS for Arduino MBED RP2040 boards diff --git a/src/LittleFS_Mbed_RP2040.h b/src/LittleFS_Mbed_RP2040.h index ae8fbfe..b493867 100644 --- a/src/LittleFS_Mbed_RP2040.h +++ b/src/LittleFS_Mbed_RP2040.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef _LITTLEFS_MBED_RP2040_H @@ -24,7 +25,7 @@ #endif #ifndef LFS_MBED_RP2040_VERSION - #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.0" + #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.1" #endif #ifndef LFS_MBED_RP2040_DEBUG diff --git a/src/LittleFS_Mbed_RP2040.hpp b/src/LittleFS_Mbed_RP2040.hpp index 003e8c9..de75633 100644 --- a/src/LittleFS_Mbed_RP2040.hpp +++ b/src/LittleFS_Mbed_RP2040.hpp @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef _LITTLEFS_MBED_RP2040_HPP diff --git a/src/LittleFS_Mbed_RP2040_Debug.h b/src/LittleFS_Mbed_RP2040_Debug.h index b84a844..dc755ab 100644 --- a/src/LittleFS_Mbed_RP2040_Debug.h +++ b/src/LittleFS_Mbed_RP2040_Debug.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef LittleFS_Mbed_RP2040_Debug_h diff --git a/src_cpp/LittleFS_Mbed_RP2040.cpp b/src_cpp/LittleFS_Mbed_RP2040.cpp index da3fc98..a226d49 100644 --- a/src_cpp/LittleFS_Mbed_RP2040.cpp +++ b/src_cpp/LittleFS_Mbed_RP2040.cpp @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #include "LittleFS_Mbed_RP2040.h" diff --git a/src_cpp/LittleFS_Mbed_RP2040.h b/src_cpp/LittleFS_Mbed_RP2040.h index 7d8b44b..c130fa0 100644 --- a/src_cpp/LittleFS_Mbed_RP2040.h +++ b/src_cpp/LittleFS_Mbed_RP2040.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef _LITTLEFS_MBED_RP2040_H @@ -24,7 +25,7 @@ #endif #ifndef LFS_MBED_RP2040_VERSION - #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.0" + #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.1" #endif #ifndef LFS_MBED_RP2040_DEBUG diff --git a/src_cpp/LittleFS_Mbed_RP2040_Debug.h b/src_cpp/LittleFS_Mbed_RP2040_Debug.h index b84a844..dc755ab 100644 --- a/src_cpp/LittleFS_Mbed_RP2040_Debug.h +++ b/src_cpp/LittleFS_Mbed_RP2040_Debug.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef LittleFS_Mbed_RP2040_Debug_h diff --git a/src_h/LittleFS_Mbed_RP2040.h b/src_h/LittleFS_Mbed_RP2040.h index ae8fbfe..b493867 100644 --- a/src_h/LittleFS_Mbed_RP2040.h +++ b/src_h/LittleFS_Mbed_RP2040.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef _LITTLEFS_MBED_RP2040_H @@ -24,7 +25,7 @@ #endif #ifndef LFS_MBED_RP2040_VERSION - #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.0" + #define LFS_MBED_RP2040_VERSION "LittleFS_Mbed_RP2040 v1.0.1" #endif #ifndef LFS_MBED_RP2040_DEBUG diff --git a/src_h/LittleFS_Mbed_RP2040.hpp b/src_h/LittleFS_Mbed_RP2040.hpp index 003e8c9..de75633 100644 --- a/src_h/LittleFS_Mbed_RP2040.hpp +++ b/src_h/LittleFS_Mbed_RP2040.hpp @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef _LITTLEFS_MBED_RP2040_HPP diff --git a/src_h/LittleFS_Mbed_RP2040_Debug.h b/src_h/LittleFS_Mbed_RP2040_Debug.h index b84a844..dc755ab 100644 --- a/src_h/LittleFS_Mbed_RP2040_Debug.h +++ b/src_h/LittleFS_Mbed_RP2040_Debug.h @@ -7,11 +7,12 @@ Built by Khoi Hoang https://github.com/khoih-prog/LittleFS_Mbed_RP2040 Licensed under MIT license - Version: 1.0.0 + Version: 1.0.1 Version Modified By Date Comments ------- ----------- ---------- ----------- 1.0.0 K Hoang 11/06/2021 Initial coding to support MBED RP2040-based boards such as RASPBERRY_PI_PICO. etc. + 1.0.1 K Hoang 16/08/2021 Fix FORCE_REFORMAT bug in example *****************************************************************************************************************************/ #ifndef LittleFS_Mbed_RP2040_Debug_h