Skip to content

Commit c3da530

Browse files
Update documentation on SPIFFS deprecation
1 parent f581360 commit c3da530

File tree

8 files changed

+24
-13
lines changed

8 files changed

+24
-13
lines changed

doc/boards.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Parameters in Arduino IDE:
344344
~~~~~~~~~~~~~~~~~~~~~~~~~~
345345

346346
- Card: "WEMOS D1 Mini Lite"
347-
- Flash Size: "1M (512K SPIFFS)"
347+
- Flash Size: "1M (512K FS)"
348348
- CPU Frequency: "80 Mhz"
349349

350350
Power:

doc/esp8266wifi/bearssl-client-secure-class.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ The web browser you're using to read this document keeps a list of 100s of certi
102102

103103
In many cases your application will know the specific CA it needs to validate web or MQTT servers against (often just a single, self-signing CA private to your institution). Simply load your private CA in a `BearSSL::X509List` and use that as your trust anchor.
104104

105-
However, there are cases where you will not know beforehand which CA you will need (i.e. a user enters a website through a keypad), and you need to keep the list of CAs just like your web browser. In those cases, you need to generate a certificate bundle on the PC while compiling your application, upload the `certs.ar` bundle to SPIFFS or SD when uploading your application binary, and pass it to a `BearSSL::CertStore()` in order to validate TLS peers.
105+
However, there are cases where you will not know beforehand which CA you will need (i.e. a user enters a website through a keypad), and you need to keep the list of CAs just like your web browser. In those cases, you need to generate a certificate bundle on the PC while compiling your application, upload the `certs.ar` bundle to LittleFS or SD when uploading your application binary, and pass it to a `BearSSL::CertStore()` in order to validate TLS peers.
106106

107-
See the `BearSSL_CertStore` example for full details as the `BearSSL::CertStore` requires the creation of a cookie-cutter object for filesystem access (because the SD and SPIFFS filesystems are presently incompatible with each other). At a high level in your `setup()` you will call `BearSSL::initCertStore()` on a global object, and then pass this global certificate store to `client.setCertStore(&gCA)` before every connection attempt to enable it as a validation option.
107+
See the `BearSSL_CertStore` example for full details.
108108

109109
Supported Crypto
110110
~~~~~~~~~~~~~~~~

doc/esp8266wifi/client-secure-class.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,31 +42,32 @@ Load client certificate from file system.
4242
.. code:: cpp
4343
4444
#include <FS.h>
45+
#include <LittleFS.h>
4546
#include <ESP8266WiFi.h>
4647
#include <WiFiClientSecure.h>
4748
48-
const char* certyficateFile = "/client.cer";
49+
const char* certificateFile = "/client.cer";
4950
5051
*setup() or loop()*
5152

5253
.. code:: cpp
5354
54-
if (!SPIFFS.begin())
55+
if (!LittleFS.begin())
5556
{
5657
Serial.println("Failed to mount the file system");
5758
return;
5859
}
5960
60-
Serial.printf("Opening %s", certyficateFile);
61-
File crtFile = SPIFFS.open(certyficateFile, "r");
61+
Serial.printf("Opening %s", certificateFile);
62+
File crtFile = LittleFS.open(certificateFile, "r");
6263
if (!crtFile)
6364
{
6465
Serial.println(" Failed!");
6566
}
6667
6768
WiFiClientSecure client;
6869
69-
Serial.print("Loading %s", certyficateFile);
70+
Serial.print("Loading %s", certificateFile);
7071
if (!client.loadCertificate(crtFile))
7172
{
7273
Serial.println(" Failed!");

doc/faq/readme.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ perform. It is not listed among libraries verified to work with ESP8266.
7979

8080
`Read more <a03-library-does-not-work.rst>`__.
8181

82-
In the IDE, for ESP-12E that has 4M flash, I can choose 4M (1M SPIFFS) or 4M (3M SPIFFS). No matter what I select, the IDE tells me the maximum code space is about 1M. Where does my flash go?
82+
In the IDE, for ESP-12E that has 4M flash, I can choose 4M (1M FS) or 4M (3M FS). No matter what I select, the IDE tells me the maximum code space is about 1M. Where does my flash go?
8383
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8484

8585
The reason we cannot have more than 1MB of code in flash has to do with
@@ -90,7 +90,7 @@ total, but switching such "banks" on the fly is not easy and efficient,
9090
so we don't bother doing that. Besides, no one has so far complained
9191
about 1MB of code space being insufficient for practical purposes.
9292

93-
The option to choose 3M or 1M SPIFFS is to optimize the upload time.
93+
The option to choose 3M or 1M filesystem is to optimize the upload time.
9494
Uploading 3MB takes a long time so sometimes you can just use 1MB. Other
9595
2MB of flash can still be used with ``ESP.flashRead`` and
9696
``ESP.flashWrite`` APIs if necessary.

doc/filesystem.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ following include to the sketch:
6363
6464
#include "FS.h"
6565
66+
SPIFFS Deprecation Warning
67+
--------------------------
68+
69+
SPIFFS is currently deprecated and may be removed in future releases of
70+
the core. Please consider moving your code to LittleFS. SPIFFS is not
71+
actively supported anymore by the upstream developer, while LittleFS is
72+
under active development, supports real directories, and is many times
73+
faster for most operations.
74+
75+
6676
SPIFFS and LittleFS
6777
-------------------
6878

doc/installing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ BeagleBone, CubieBoard).
244244
- `What is PlatformIO? <https://docs.platformio.org/en/latest/what-is-platformio.html?utm_source=arduino-esp8266>`__
245245
- `PlatformIO IDE <https://platformio.org/platformio-ide?utm_source=arduino-esp8266>`__
246246
- `PlatformIO Core <https://docs.platformio.org/en/latest/core.html?utm_source=arduino-esp8266>`__ (command line tool)
247-
- `Advanced usage <https://docs.platformio.org/en/latest/platforms/espressif8266.html?utm_source=arduino-esp8266>`__ - custom settings, uploading to SPIFFS, Over-the-Air (OTA), staging version
247+
- `Advanced usage <https://docs.platformio.org/en/latest/platforms/espressif8266.html?utm_source=arduino-esp8266>`__ - custom settings, uploading to LittleFS, Over-the-Air (OTA), staging version
248248
- `Integration with Cloud and Standalone IDEs <https://docs.platformio.org/en/latest/ide.html?utm_source=arduino-esp8266>`__ - Cloud9, Codeanywhere, Eclipse Che (Codenvy), Atom, CLion, Eclipse, Emacs, NetBeans, Qt Creator, Sublime Text, VIM, Visual Studio, and VSCode
249249
- `Project Examples <https://docs.platformio.org/en/latest/platforms/espressif8266.html?utm_source=arduino-esp8266#examples>`__

doc/libraries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This is a bit different from standard EEPROM class. You need to call ``EEPROM.be
2525

2626
``EEPROM.write`` does not write to flash immediately, instead you must call ``EEPROM.commit()`` whenever you wish to save changes to flash. ``EEPROM.end()`` will also commit, and will release the RAM copy of EEPROM contents.
2727

28-
EEPROM library uses one sector of flash located just after the SPIFFS.
28+
EEPROM library uses one sector of flash located just after the embedded filesystem.
2929

3030
`Three examples <https://github.com/esp8266/Arduino/tree/master/libraries/EEPROM>`__ included.
3131

doc/ota_updates/readme.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ If this is the case, then most likely ESP module has not been reset after initia
360360
The most common causes of OTA failure are as follows:
361361

362362
- not enough physical memory on the chip (e.g. ESP01 with 512K flash memory is not enough for OTA).
363-
- too much memory declared for SPIFFS so new sketch will not fit between existing sketch and SPIFFS – see `Update process - memory view <#update-process-memory-view>`__.
363+
- too much memory declared for the filesystem so new sketch will not fit between existing sketch and the filesystem – see `Update process - memory view <#update-process-memory-view>`__.
364364
- too little memory declared in Arduino IDE for your selected board (i.e. less than physical size).
365365
- not resetting the ESP module after initial upload using serial port.
366366

0 commit comments

Comments
 (0)