Hello, I am creating an Analog Data Input application using the ESP32 Web Server, where I will upload several HTML, CSS, and JavaScript files located in the data folder along with the Main.ino file.
I need the facility in the Tools > ESP32 Sketch Data Upload menu. I have followed the procedure to make the "ESP32 Sketch Data Upload" menu appear, but it always fails. I even tried installing it on Arduino IDE versions 2.04, 2.10, and 2.34. None of them worked. Why is that? Is there something wrong with my laptop?
It looks like you figured it out while I was writing this, but I'll post the information anyway for the benefit of others who have the same question and find this forum thread during their research:
These instructions are specific to Arduino IDE 1.x. They won't work with Arduino IDE 2.x
These instructions are specific to Arduino IDE 1.x. However, this tutorial does link to another tutorial for Arduino IDE 2.x:
Please note that the Arduino IDE 2.x ESP32 filesystem uploader is accessed in a different way than the Arduino IDE 1.x tool was:
Then, upload the files to the ESP32 board. Press [Ctrl ] + [Shift ] + [P ] on Windows or [⌘ ] + [Shift ] + [P ] on MacOS to open the command palette. Search for the Upload LittleFS to Pico/ESP8266/ESP32 command and click on it.
The reason is because the "Tools" system of Arduino IDE 1.x used by the "ESP32 sketch data upload" Tool (AKA "plugin") is very specific to the Java programming language that version series of Arduino IDE was written in.
Arduino IDE 2.x is a complete rewrite of the Arduino IDE on a different framework and in a new language (TypeScript), so it is not possible for Arduino IDE 2.x to support the Arduino IDE 1.x Tools.
Or maybe you are asking why you must activate the extension via the "Command Palette" when using Arduino IDE 2.x, instead of via a "Tools" menu item as was the case with Arduino IDE 1.x?
The reason is that the VS Code extensions framework that is used by the "arduino-littlefs-upload" extension for Arduino IDE 2.x doesn't provide the capability for the extension to add new menu items. The Arduino IDE developers are tracking the request for the addition of such a capability here:
Yes, that's my question, how to add the menu (plugin): Tool > ESP32 sketch data upload. Does it mean that what I got from several links can only work on Arduino IDE 1.x and not on Arduino IDE 2.x?
Hi,
Wasn't sure if to start a new thread but given the issue I have is the same I thought to ask on here first. I am trying to following the instructions in post 5 and use the little FS uploader. I am using a Mac and for the life of me I can't find the folder ~/.arduinolDE/ on my Mac at all.
Sorry, "I have tried to add the 'ESP32 sketch data upload' tool in Arduino IDE 1.x, but the menu still does not appear under 'Tools >'. Please help me with how to add the 'ESP32 sketch data upload' tool in Arduino IDE 1.x? Thanks."
I don't understand why you now want to use the outdated Arduino IDE 1.x when you already had a working system using Arduino IDE 2.x. But I'll try to provide assistance anyway:
You can install the "ESP32 sketch data upload" Tool by following these instructions:
Start Arduino IDE 1.x.
Select File > Preferences from the Arduino IDE menus.
The "Preferences" dialog will open.
Note the path shown in the "Sketchbook location:" field of the "Preferences" dialog.
Click the "Cancel" button in the "Preferences" dialog.
Select File > Quit from the Arduino IDE menus.
All Arduino IDE windows will close.
Using your file browser, open the folder at the path that was shown in the "Sketchbook location" IDE preference.
Create a folder named tools if one doesn't already exist.
Copy the unzipped ESP32FS folder to the tools subfolder of the sketchbook you created in step (7).
The resulting folder structure must be exactly like this:
"Thank you for your response. I have tried several times to add 'ESP32 sketch data upload' in Arduino IDE 1.x, even on 3 laptops, but it still doesn't work. Here are the results.
Alright, I will close the discussion using IDE 1.x. With your help, I have been able to create an ESP32 'LittleFS Uploader' in Arduino IDE 2.x.
I am actually learning how to create a sketch to read sensors (any sensor) using the WebServer method, and I found a link that uses Arduino IDE 1.x. Could you provide a link uses Arduino 2.x for reading sensors with WebServer that separates the HTML, CSS and JavaScript files into a 'data' folder" like the following file organization?
I'm sorry to hear that. I personally verified that my instructions do work.
I wonder if it might be caused by you using the Microsoft Store app version of Arduino IDE? Windows places some extra security restrictions on these apps, so maybe those block the IDE's ability to use the tool?
I'm using the non-app version of Arduino IDE 1.8.19, which you get by clicking the "Windows Win 7 and newer" or "Windows ZIP file" download links on the "Software" page instead of the "Windows app" link.
I think that is a reasonable decision.
Since it is unrelated to the original subject of this topic, please open a new forum topic for that question. This will ensure it gets the attention of the forum helpers knowledgeable about the subject of your new question.
You are welcome. I'm glad if I was able to be of assistance.