Dear Espressif community,
I’d like to share a small tool I’ve developed to simplify the integration of LittleFS into ESP-IDF projects, particularly when working with Visual Studio Code.
I wasn’t sure whether Espressif already provides an official tool that performs something similar (and if so, I’d be glad to learn about it!), but I created this utility with the hope that it might help others streamline their workflow.
What does this tool do?
Automatically generates a .vscode/tasks.json file with tasks for:
Building the firmware (with or without LittleFS partitions).
Flashing the firmware along with LittleFS partitions in one go.
Appends the necessary littlefs_create_partition_image instructions to CMakeLists.txt.
Creates project folders for storing LittleFS content.
Supports multiple partitions (e.g., internal and external storage).
Compatible with Windows, Linux, and WSL environments.
This is designed specifically for those using Visual Studio Code as their development environment.
Requirements
Please note that this script does not replace the actual LittleFS component. You’ll still need to install the littlefs component through the ESP-IDF component manager, as usual. What this tool automates is the surrounding setup and task configuration process.
Why this tool?
As someone who works frequently with ESP32 projects across different environments, I needed a quick and reliable way to set up and migrate projects using LittleFS without manually configuring tasks and editing CMakeLists.txt every time. This tool aims to make that initial setup much faster—especially useful when managing multiple projects or working in teams.
I’d be more than happy to hear your feedback, suggestions, or corrections. And of course, if there’s already an official solution from Espressif, I’ll be glad to switch to it!
Here is the github repo's link https://github.com/PoleG97/enable-littlefs-cli
Warm regards,
Jairo
Task generation tool to LitlleFS workflow in VSCode
Task generation tool to LitlleFS workflow in VSCode
Last edited by PoleG97 on Tue Apr 15, 2025 2:14 pm, edited 1 time in total.
Re: Task generation tool to LitlleFS workflow in VSCode
Hi PoleG97,
thank you for sharing your tool. We will certainly check it and provide a feedback!
Thanks for your ESP32 community suport.
thank you for sharing your tool. We will certainly check it and provide a feedback!
Thanks for your ESP32 community suport.
Who is online
Users browsing this forum: ChatGPT-User, PerplexityBot and 2 guests
