Hi,
Could someone tell on which RNT page I have to go to read how to install “something” that will add a command to the pop-down menu which appears after clicking on tools in the Arduino IDE. That command is “ESP32 sketch data upload”. That page let you check if the installation was succeeded by checking this command in that popdown menu. In my case it was successfull installed, but as soon as I pressed the Upload (->) button in the IDE then after the IDE starts to upload (the compilation part was successfull) then I get an upload failure:
Arduino:1.8.13 (Windows 10), Board:”DOIT ESP32 DEVKIT V1, 80MHz, 921600, None, Disabled”
The sketch uses 786677 bytes (60%) program memory. Maximum is 1310720 bytes.
Global variabeles use 48704 bytes (14%) of the dynamic memory. Remain 278976 bytes for the local variables. Maximum is 327680 bytes.
java.io.IOException: Cannot run program “___REMOVE___/esptool.exe”: CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.SketchController.upload(SketchController.java:732)
at processing.app.SketchController.exportApplet(SketchController.java:703)
at processing.app.Editor$UploadHandler.run(Editor.java:2055)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: CreateProcess error=2, The system can not find the specified file
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 9 more
By the way, after pressing the Upload button I see a green progressbar of 20% for about 40 seconds, then it disappears for another 40 secondsthen again a progressbar appears and is growing now and after 110 sec the above message appears.
When I execute the “ESP32 sketch data upload” command alone (Via Tools) then directly a failure pops up saying SPIFFS Error: esptool not found!
My folowing step was to try to uninstall that “something” which has lead to these “temporary” problems because I think that I do not need “something” when I have an ESP32-cam existing of two boards of which the second one has an USB connector (probably this combination is a kit named “Esp32-cam-mb Wifi Bluetooth Development Board Ov2640 Camera Module -usb Interface Ch340g Usb To Ser”.
Some time ago I had not installed esptool and some of the RNT examples could be uploaded succesfully, so I wish to go “back to basic”.
I also did an uninstall of the arduino ide and installed a new version ( 1.8.xx), but that command “ESP32 sketch data upload” is still appearing.
Hope you may help me further.
Hi.
I would recommend that you uninstall Arduino IDE and try to install it again. It seems you did that already.
To have the ESP32 Sketch Data Upload option, you can follow this tutorial: https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/
Regards,
Sara
Thank you for your reply. Indeed, the link you mentioned went to the page I was searching for.
As you remarked already I had un-and reinstalled the Arduino IDE. Now it is version 1.8.13
With this version I did the Wifiscan example as follows:
First I went to the page with your link.
On that page I installed the ESP32 add on (perhaps it was alredy there, but in case of I installed it again) by pressing the following link
- Windows, Mac, and Linux instructions – Installing the ESP32 Board in Arduino IDE
- On that page I went trough all instructions up to and including para 5 which is uploading the WIFIscan sketch to the ESP32 DEV kit board. The compilation went OK but the Uploadproces did NOT succeed
- The same failure message appeared again as described in my previous thread.
- Also the compilation time the IDE needs takes a remarkably long time > 3 minutes
- Loading and installing the ESP32 add-on was succesfull. The BoardManager shows: ESp32 version 2.0.7 installed etc.
- I tried to uninstall this ESP32 add-on, by pressing the REMOVE button in the Board Manager. After a long time the Board Manager came with a message at the bottomline of the window “java.lang.nullPointerExeption” and the BoardManager is still showing that ESP32 is still installed
- May be it a JSON problem?
- Thank you for your help
Hi.
It seems it is an issue with the Arduino IDE itself: https://forum.arduino.cc/t/fix-for-arduino-ide-wont-start-java-lang-nullpointerexception/660400
Take a look at the suggested workaround here: https://github.com/espressif/arduino-esp32/issues/7923
Let me know if this helps to solve the issue.
Regards,
Sara
Hi,
I started with your first link …./66040 and removed the specified file and folder as stated there:
Windows (regular IDE):
remove file C:\Users\YourUsername\AppData\Local\Arduino15\package_index.json
remove folder C:\Users\YourUsername\AppData\Local\Arduino15\cache
After reading there it should be not necessary to remove these because on that page it was stated that in the Arduino IDE 1.8.13 this issue was fixed. I did it anyway, despite me being using version 1.8.13
With the WifiScan sketch loaded and after pressing the upload button of the WifiScan sketch it went wrong again, but now because of the remove action maybe.
I decided to uninstall this Arduino IDE version (1.8.13) and downloaded and installed a new version as well 1.8.19.
Now I could Remove the ESP32 package (2.0.7) and could install it again, that was stated on the page of your second link, without that java.lang.NullPointerException failure.
Then after selecting my ESP32 Dev board with the right Com port I started to Upload the WifiScan example sketch and it is working correctly now! Also the “ESP32 sketch Data Upload” on the popdown menu under Tools is not there anymore. And that was also a wish for investigation of the issue. Now I might consider to install that ESP32 Filesystem Uploader in the Arduino IDE again.
For now uploading to the ESP32 is possible without errors.
Great.
I’m glad those links were helpful.
You need to install the ESP32 Data Sketch Upload again. It doesn’t install automatically.
Regards,
Sara
Hi Sara,
I have installed the ESP32 Data Sketch Upload again. Testing the uploader, the last line in the Ser.Monitor was File Content: and nothing else. I discovered that I had misspelled the filename of the textfile. After I had corrected that the Sketch Upload ended with:
esptool.py v4.5.1
Serial port COM6
A fatal error occurred: Could not open COM6, the port doesn’t exist
SPIFFS Upload failed!
I had to restart the Arduino IDE to have a correct upload (that Com port number was not changed, the IDE-Tools menu was still showing COM 6 too).
Finally I could read the content of that textfile in the Ser. Monitor.
The ESP32 Data Sketch Upload is working now.
So during this excercise I experienced two quite disturbing issues.
- It’s disturbing that I have to restart the Arduino IDE when I have changed a the name of the textfile and then after uploading with the ESP32 Data Sketch Upload I get a “COM port does not exist” message in the IDE.
- Still the sketch compilation takes more than 4 minutes before it starts uploading to the ESP32. Also with the compilation of your simple Test.ino. I wouldn’t know what’s causing that long time.
You may close this thread as Resolved.
Thank for your help.