Following an uncertain change in files I have made, my Arduino 1.8.13 on Win10 'lost' its esptool.
Whenever I select the IDE "Tools", "ESP8266 Sketch Data Upload" to upload image file to be opened in web,
I get the "SPIFFS Error: esptool not found!".
I have tried to place the esptool.exe file in every possible location (folder), including the Arduio15 'tools' and the sketch folder, all for no avail.
In my Arduino I use the LittleFS.h and ESP8266WiFi.h libraries. The program compiles, loads and run OK, but I am unable to load a data file.
I found several posts on the net on that very question, non of which helped.
I also reloaded the python and the esptool. nothing helped.
Any idea?
Thx.
There is a way to trace what is going on. I've ended up doing the following.
Like any other application, Arduino application accesses the filesystem. It is a Java app (1.8.15).
Wouldn't it be nice if we could find out what files it is trying to access and find out where it is looking for?
Well there is a way. Microsoft purchased a company sysinternals that makes great tools.
One of them is "Process monitor".
Running process monitor then running Arduino until you get the error message is enough to find it out.
Steps:
-
download and install process monitor(microsoft site. Search google for sysinternals).
-
Run the Arduino application.
-
Run process monitor. As soon as it starts, it captures all process IO.
-
click on whatever you're doing to get the error message.
-
On process monitor. click "Ctrl-E" to stop capturing.
-
Select Filter. Put filter on "path", condition "contains", and text-field as esptool
-
Somewhere at the bottom of the list, you will find "NAME NOT FOUND", PATH NOT FOUND"
That is where the tool is looking for the file.
I am using ESP32 and similar problem was happening.
Mine was here.
C:\Users<username>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\tools
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.