Skip to content

Simple shell script for linux based systems to up- and download files to the ESP32 using the esptool.py

Notifications You must be signed in to change notification settings

josephpal/esp32-SPIFFS-Extracter

Repository files navigation

esp32-SPIFFS-Extracter

This project contains three different scripts to write files to the SPIFFS of the ESP32, to download files from the SPIFFS or even to erase the whole flash memory.

Usage

Make sure, that the executable bits from the files esptool.py, mkspiffs and all the shell scripts *.sh are set.

Uploading data

To upload files to the internal memory of the ESP32 (so called SPIFFS), just put the files you wanna upload into the directory /data_upload and execute the script spiffs-upload.sh. If you don't specify a port, the script will use the first connected /dev/ttyUSB* device. Otherwise specify the device with calling the script with e.g. spiffs-upload.sh /dev/ttyUSB1.

Downloading data

To download files from the internal memory of the ESP32 to your computer, execute the script spiffs-download.sh. If you don't specify a port, the script will use the first connected /dev/ttyUSB* device. Otherwise specify the device with calling the script with e.g. spiffs-download.sh /dev/ttyUSB1.

Erasing the flash memory

To erase the complete memory, just execute the script spiffs-erase.sh. To specify the device, call the script like mentioned in the examples above.

About

Simple shell script for linux based systems to up- and download files to the ESP32 using the esptool.py

Resources

Stars

Watchers

Forks

Packages

No packages published