arduino-esp32fs-plugin
arduino-esp32fs-plugin copied to clipboard
SPIFFS Error: esptool not found!
Hello. The latest version of ESP32FS (file ESP32FS-1.0.zip dated 2019/01/15) does not work, showing error "SPIFFS Error: esptool not found!" when trying to upload data.
I am using Arduino IDE 1.8.8 and Arduino core installed through "Instructions for Windows" during this week.
Same here. I noticed the file has the extension .java and not .jar. Not into java and jar but I'll do my research.
tnx me-no-dev and others for the great work you share!
Okay, tried to compile from .java to .jar but it seems to lack some dependencies. Any help will be appreciated.
Think is solved for me. Found it here: https://github.com/me-no-dev/arduino-esp32fs-plugin/releases/
More on this: the new version doen't work indeed! "SPIFFS Error: esptool not found!" To solve for now I used the older version and that one still worked!
it seems like it doesn't work if you installed the toolchain via github. if you installed arduino-esp32 via the board manager, then it finds esptool.py without issues. so i think it has to do with where it assumes esptool.py resides...
this is on OSX, using IDE 1.8.5.
Am on windows 7 with Arduino IDE 1.8.9 and had the same problem. Tried installing esptool via system wide python ("pip install ...") to no avail.
Seems like a path issue. In the Java-File, in line 276 and following, the tool determines the path to the ESP-tool platform-dependently to be platform.getFolder()+"/tools", esptoolCmd
with esptoolCmd
presumably resolving to esptool.exe
on Windows.
Looking into the folder, there's just an esptool.py
there which can be executed, of course. But, as the Arduino IDE plugin expects an *.exe
, this doesn't work.
Luckily, there is the binary under the same folder in the esptool
subfolder, so just copy the file platform.getFolder()+"/tools/esptool/esptool.exe
--> platform.getFolder()+"/tools/esptool.exe
next to the esptool.py
python script.
Works for me :)
More on this: the new version doen't work indeed! "SPIFFS Error: esptool not found!" To solve for now I used the older version and that one still worked!
I used version 0.1 when I encountered this issue and it seems to work. For info, Arduino 1.8.7 on Win10 and ESP32 installed in boards manager with https://dl.espressif.com/dl/package_esp32_index.json
[for win 10] after a long search i found two "tools" folders for esp32:
-
C:\Users\[User Name]\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\tools
and -
C:\Users\[User Name]\AppData\Local\Arduino15\packages\esp32\tools
i had to copy theesptool.exe
from a subfolder of the second, to the first mentioned folder :)
OR:
- just search for
esptool.exe
, copy this file, - then search for
esptool.py
, go to it's containing folder, pasteesptool.exe
here. hint: a good tool for file search in win 10 is Everything
wasted an hour on this :'( but hope to save someone else some time ;)
ES UNA BOSTA!!! NO ANDA NADA!! SOLO UN ITALIANO PUEE FABRICAR UNA BASURA TAN GRANDE!!! AVANZAN PARA ATRAS!! LA VERSION 1.6 ANDABA PERFECTA!! TODO TIENE ERRORES! EL FS.ZIP..EN LUGAR DE DESCOMPRIMIR UN JAR EJECUTABLE, DESCOMPRIME UN .JS (JAVASCRIPT) UN DESASTRE!!
In my case i came to know something really important, addon must be inside the Sketchbook folder that is set in Preferences tab, ie. sketchbook\tools\ESP8266FS\tool\esp8266fs.jar also take care of version of IDE and Addon if both are compatible with each others.
Solution
Windows 10 running esp32 devkit 1v running ardruino 1.8.9
Copy the file esptool.exe from C:\Users%USERNAME%\AppData\Local\Arduino15\packages\esp32\tools to C:\Users%USERNAME%\Documents\Arduino\hardware\espressif\esp32\tools
I had loaded some of the tools sets from various manufacturer of esp8266 boards Heltech, etc and seem to have copies to esptools everywhere, Ardunio seems to become very confused and the tools no longer worked. Had to purge them all and reload slowly.
a solution for OSX 10.12 Arduino 1.8.10
copy the folder and its content /Users/----/Documents/Arduino/hardware/heltec/esp32/tools/esptool to /Users/----/Documents/Arduino/hardware/heltec/esp32/tools/esptool_py
This is working for me. Background: On OSX the 'esptool' (without extension) is used. But the installation has placed it in esptool/esptool. Its was not possible for me to change this without breaking the system. Looking at the source you could see the the searchpath of /esptool.py/esptool is used even when no Python is used.
Met the same issue for Arduino IDE1.8.13. The project image can be upload successful but failed with "ESP32 sketch the data upload". It shows error message "mkspiffs not found" when used 1.0 version. After copy mkspiffs.exe to the right tools directory, it shows error message "esptool not found". After copy esptool.exe similar, it go on and see the SPIFFS info but failed with "SPIFFS failed.". Aha......... My last solution is to use v0.1 in tags instead and it works.
Met the same issue for Arduino IDE1.8.13. The project image can be upload successful but failed with "ESP32 sketch the data upload". It shows error message "mkspiffs not found" when used 1.0 version. After copy mkspiffs.exe to the right tools directory, it shows error message "esptool not found". After copy esptool.exe similar, it go on and see the SPIFFS info but failed with "SPIFFS failed.". Aha......... My last solution is to use v0.1 in tags instead and it works.
https://github.com/esp8266/arduino-esp8266fs-plugin/files/2936951/ESP8266FS.zip The above zip gets you past this error, however I an now getting : [SPIFFS] python : python.exe [SPIFFS] uploader : C:\Users\Praveen\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\tools\upload.py
Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640SPIFFS Upload failed!
Got the python issue resolved as well with https://github.com/esp8266/arduino-esp8266fs-plugin/releases/download/0.5.0/ESP8266FS-0.5.0.zip
Thank you all! I did the same as praveen2k10 and it works.
On windows 10 with the files from github I had to copy esptool.exe from: \SKETCHBOOK\hardware\espressif\esp32\tools\esptool to: \SKETCHBOOK\hardware\espressif\esp32\tools
Then it worked.
I was also having the "esptool not found" problem with:
- arduino-esp32fs-plugin v1.0
- macOS Catalina (10.15.7)
- ESP32 installed from github - not using Board Manager as described here
- Arduino IDE 1.8.13
Reverting back to v0.1 of the plugin cleared up the problem. I don't have an environment set up that allows me to build the plugin, otherwise I'd try to find out more precisely what is going on. Are there instructions anywhere on setting up such an environment?
Same here. Doesn't work on macOS Big Sur.
EDIT: This one worked fine: https://github.com/esp8266/arduino-esp8266fs-plugin/releases/download/0.5.0/ESP8266FS-0.5.0.zip
Also on Win 10 & Arduino IDE 1.8.13 (clean Install & Libraries updated & boards fresh reinstalled) have the same error...
@andres26263 For Windows, the plugin searches for esptool.exe in: platform.getFolder() base path subfolders: /tools /tools/esptool_py /tools/esptool Then in values configured by installation PreferencesData.get() ... values of runtime.tools.esptool_py.path= runtime.tools.esptool.path=
You can test my variant of the plugin, it gives a bit more info where the tool is found. https://github.com/lorol/arduino-esp32fs-plugin
@lorol Thank You for answer. I finally solved it, after 1 day of searching and trying, copying a newly redownloaded "esp8266fs.jar" in all "/tools" directory & subs. This because of Steph answer in https://rntlab.com/question/spiffs-error-esptool-not-found/ Actually I'm working on a 8266 project, so I could'nt try Your variant, sorry...
Simply move espTool.exe next to espTool.py work for me.
Just move esptool.exe from "C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools\esptool" to "C:\Program Files (x86)\Arduino\hardware\espressif\esp32\tools"
I have the same issue. but I got the solution with this updated jar file.
For arduino-esp32 2.0.6 in macOS, my resolve method is:
/usr/bin/pip3 install esptool
ln -s ~/Library/Python/3.9/bin/esptool.py ~/Library/Arduino15/packages/esp32/tools/esptool_py/4.2.1/esptool.py
Adding my 2cents worth... The only solution that worked for me (for LittleFS data file uploads) was to install version 1.0.1 from @lorol's repo (can found here).
Version 2.0.7 from the same repo wouldn't work. And this version didn't work either.
Apart from version 1.0.1 mentioned above, all the other versions I tried would either not work (due to the 'esptool not found' error) or corrupt the LittleFS partition even when they reported that the upload worked.
(And as I'm sure you're aware, this only works in Arduino IDE v1.x)