I'm using a DFRobot FireBeetle-ESP32 with spiffs and I downloaded the esp32 boards file looking for the spiffs parameters block size
, page size
, spiffs start
and spiffs end
as I'm following this tutorial but for the ESP32, i.e.
mklittlefs --size <image size> --page <page size> --block <block size> -d 5 --create ./data spiffs.bin
The ESP32 boards file doesn't contain that information. Is there anywhere it's available in order to use mkspiffs? Or are there reasonable defaults for the FireBeetle-ESP32?
I managed to get the parameters by installing the arduino-esp32fs-plugin.
First need to find where to put the plugin. This is on a Raspberry Pi 4.
which is
/home/pi/Arduino
Download the plugin and put it in:
restart the Arduino IDE, load the LITTLEFS_test example and save it to a suitable location, e.g.:
then create a data directory and file with some content in the sketch directory:
then in the Arduino IDE:
choose
LittleFS
andOK
.The required data is then in the output window of the Arduino IDE:
I added some debug output to the plugin, compiled it and put it in the Arduino IDE to come up with a commandline version. Note that the
size
parameter in the Arduino IDE output window is divided by1024
, so need to multiply it by1024
for the commandline version:installing esptool:
and adding more debug output to the plugin gave me the commandline for uploading the littlefs image: