You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-8
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,39 @@
1
1
# Arduino ESP32 filesystem uploader
2
2
3
-
Arduino plugin which packs sketch data folder into SPIFFSor LittleFS filesystem image,
3
+
Arduino plugin which packs sketch data folder into SPIFFS, LITTLEFS or FATFS filesystem image,
4
4
and uploads the image to ESP32 flash memory.
5
-
</br> You can use either LITTLEFS or SPIFFS but not both simultaneously on given Arduino project.
5
+
</br> You can have only of three filesystems on given Arduino project.
6
+
7
+
## Notes for LITTLEFS
8
+
9
+
- Uses same partition scheme as SPIFFS.
10
+
- See [LITTLEFS esp32 library](https://github.com/lorol/LITTLEFS)
11
+
12
+
## Notes for FatFS
13
+
14
+
- On Arduino IDE menu: *Tools > Partition Scheme* select one with FAT partition
15
+
- The usable size of FAT partition is reduced with 1 sector of 4096 bytes (0x1000) to resolve wear leveling space requirement
16
+
- For same reason, the image file is flashed with +4096 bytes (0x1000) offset of partition address csv table entry
17
+
- To flash the data folder as FAT partition by network port (uses espota), replace your esp32-core Update library with the [modified files here](https://github.com/lorol/arduino-esp32fatfs-plugin/tree/master/extra/esp32-modified-Update-lib-ffat-espota.zip)
18
+
- You may need to decrease **maxOpenFiles** at FFat.begin() of your sketch , [see this note](http://marc.merlins.org/perso/arduino/post_2019-03-30_Using-FatFS-FFat-on-ESP32-Flash-With-Arduino.html)
19
+
>The FFAT module uses 8KB plus 4KB per concurrent file that can be opened. By default, it allows 10 files to be opened, which means it uses 48KB. IF you want to reduce its memory use, you can tell it to only support one file, and you will save 36KB, leaving you with only 12KB used.
20
+
```
21
+
if (!FFat.begin(0, "", 1)) die("Fat FS mount failed. Not enough RAM?");
22
+
```
6
23
7
24
## Installation
8
25
9
26
- Make sure you use one of the supported versions of Arduino IDE and have ESP32 core installed.
10
-
- Download the tool from [here](https://github.com/lorol/arduino-esp32fs-plugin/releases/download/1.0%2C1/esp32fs.zip)
27
+
- Download the tool from [here](https://github.com/lorol/arduino-esp32fs-plugin/releases/download/2.0/esp32fs.zip)
11
28
- In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
12
29
- Unpack the tool into tools directory (the path will look like ```<home_dir>/Arduino/tools/ESP32FS/tool/esp32fs.jar```).
13
-
- If not already installed, for LITTLEFS you need an additional [mklittlefs tool](https://github.com/earlephilhower/mklittlefs) Download the [release](https://github.com/earlephilhower/mklittlefs/releases) and copy it to
14
-
packages\esp32\tools\mkspiffs\<mklittlefs rev. x.x.x>\ or on checkout (dev) environment to: packages\esp32\hardware\esp32\<release>\tools\mklittlefs\
30
+
- For LITTLEFS, you need an additional [mklittlefs tool](https://github.com/earlephilhower/mklittlefs) Download the [release](https://github.com/earlephilhower/mklittlefs/releases)
31
+
- For FatFS, you need additional binary files for Windows and Linux (thanks @lbernstone for compiling) or take it from the author [here - mkfatfs tool](https://github.com/labplus-cn/mkfatfs/releases/tag/v1.0) Thanks to [labplus-cn](https://github.com/labplus-cn/mkfatfs)
32
+
- Copy **mklittlefs[.exe]** and **mkfatfs[.exe]** to **/tools** folder of esp32 platform where **espota** and **esptool** (.py or.exe) tools are located
33
+
- Alternatively see [here](https://github.com/lorol/arduino-esp32fs-plugin/releases/download/2.0/) , there are copy of the binaries. You can also use **package_esp32_index.template.json** and run get.py instead
15
34
- Restart Arduino IDE.
16
35
17
36
18
-
On the OS X create the tools directory in ~/Documents/Arduino/ and unpack the files there
19
-
20
37
## Usage
21
38
22
39
- Open a sketch (or create a new one and save it).
@@ -26,7 +43,7 @@ On the OS X create the tools directory in ~/Documents/Arduino/ and unpack the fi
26
43
- Select *Tools > ESP32 Sketch Data Upload* menu item. This should start uploading the files into ESP32 flash file system.
27
44
- When prompted, select SPIFFS or LITTLEFS image you want to make from your data folder.
28
45
29
-
When done, IDE status bar will display SPIFFS or LITTLEFS Image Uploaded message. Might take a few minutes for large file system sizes.
46
+
When done, IDE status bar will display the status of Image Uploaded message. Might take a few minutes for large file system sizes.
0 commit comments