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

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
### 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](#1)
  • Loading branch information
khoih-prog authored Aug 16, 2021
1 parent d1026a8 commit 21c7ac2
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 33 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)

---
---
Expand Down Expand Up @@ -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 <LittleFS_Mbed_RP2040.h>
#define FORCE_REFORMAT false
#define FORCE_REFORMAT false
#include <LittleFS_Mbed_RP2040.h>
LittleFS_MBED *myFS;
Expand Down Expand Up @@ -476,23 +482,23 @@ 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
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
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
Expand All @@ -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
====================================================
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions examples/LittleFS_Counting/LittleFS_Counting.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 <LittleFS_Mbed_RP2040.h>

#define FORCE_REFORMAT false
#define START_COUNT_OVER false

LittleFS_MBED *myFS;
Expand Down
9 changes: 5 additions & 4 deletions examples/LittleFS_Test/LittleFS_Test.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 <LittleFS_Mbed_RP2040.h>
#define FORCE_REFORMAT false

#define FORCE_REFORMAT false
#include <LittleFS_Mbed_RP2040.h>

LittleFS_MBED *myFS;

Expand Down
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
@@ -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":
{
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LittleFS_Mbed_RP2040
version=1.0.0
version=1.0.1
author=Khoi Hoang <[email protected]>
maintainer=Khoi Hoang <[email protected]>
sentence=Wrapper of LittleFS for Arduino MBED RP2040 boards
Expand Down
5 changes: 3 additions & 2 deletions src/LittleFS_Mbed_RP2040.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/LittleFS_Mbed_RP2040.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/LittleFS_Mbed_RP2040_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src_cpp/LittleFS_Mbed_RP2040.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions src_cpp/LittleFS_Mbed_RP2040.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src_cpp/LittleFS_Mbed_RP2040_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src_h/LittleFS_Mbed_RP2040.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src_h/LittleFS_Mbed_RP2040.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src_h/LittleFS_Mbed_RP2040_Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21c7ac2

Please sign in to comment.