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
+12-4
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,7 @@ and uploads the image to ESP32 flash memory.
12
12
## Notes for FatFS
13
13
14
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
15
+
- The usable size of FAT partition is reduced with 1 sector of 4096 bytes (0x1000) to resolve wear leveling space requirement. Also file is flashed with +4096 bytes (0x1000) offset of partition address csv table entry
17
16
- 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
17
- 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
18
>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.
@@ -27,7 +26,7 @@ if (!FFat.begin(0, "", 1)) die("Fat FS mount failed. Not enough RAM?");
27
26
- Download the tool from [here](https://github.com/lorol/arduino-esp32fs-plugin/releases/download/2.0/esp32fs.zip)
28
27
- In your Arduino sketchbook directory, create tools directory if it doesn't exist yet.
29
28
- Unpack the tool into tools directory (the path will look like ```<home_dir>/Arduino/tools/ESP32FS/tool/esp32fs.jar```).
30
-
- For LITTLEFS, you need an additional [mklittlefs tool](https://github.com/earlephilhower/mklittlefs) Download the [release](https://github.com/earlephilhower/mklittlefs/releases)
29
+
- For LITTLEFS, you need an additional [mklittlefs tool](https://github.com/earlephilhower/mklittlefs) Download the [release](https://github.com/earlephilhower/mklittlefs/releases)or see below
31
30
- 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
31
- Copy **mklittlefs[.exe]** and **mkfatfs[.exe]** to **/tools** folder of esp32 platform where **espota** and **esptool** (.py or.exe) tools are located
33
32
- Alternatively see [here](https://github.com/lorol/arduino-esp32fs-plugin/releases/tag/2.0) , there are copy of the binaries. You can also use **package_esp32_index.template.json** and run get.py instead
@@ -41,10 +40,19 @@ if (!FFat.begin(0, "", 1)) die("Fat FS mount failed. Not enough RAM?");
41
40
- Create a directory named `data` and any files you want in the file system there.
42
41
- Make sure you have selected a board, port, and closed Serial Monitor.
43
42
- Select *Tools > ESP32 Sketch Data Upload* menu item. This should start uploading the files into ESP32 flash file system.
44
-
-When prompted, select SPIFFS or LITTLEFS image you want to make from your data folder.
43
+
-On drop-down list select SPIFFS, LITTLEFS or FATFS you want to make from your data folder.
45
44
46
45
When done, IDE status bar will display the status of Image Uploaded message. Might take a few minutes for large file system sizes.
47
46
47
+
## Quick build on Win:
48
+
49
+
- Install Java JDK
50
+
- Find the path of javac.exe and jar.exe
51
+
- Edit make_win.bat accordingly
52
+
- Copy files **arduino-core.jar , commons-codec-1.7.jar , pde.jar** from your Arduino IDE installation to the folder where is located **make_win.bat**
0 commit comments