Module is recognized by IDE and all libraries loaded but will not complete upload. Am getting “Fatal error occurred: Failed to connect to ESP32……” Tried diagnostic of enabling flashing/upload mode but not sure which button to use.
With my TTGO T-Journal, I just need to press the Arduino IDE upload button and wait for the code to be uploaded. I don’t need to do any additional steps.
If after pressing the upload button, you start seeing a lot of dots _….____……_____…..____ for a while, press the on-board button labelled as “RST” and it should upload the code straight away.
I hope this helps.
I tried that and got another message(attached). Looks like I got a lemon. “Connecting…….._____….._____….. Traceback (most recent call last): File “esptool.py”, line 2959, in File “esptool.py”, line 2952, in _main File “esptool.py”, line 2653, in main File “esptool.py”, line 463, in connect File “esptool.py”, line 440, in _connect_attempt File “esptool.py”, line 379, in sync File “esptool.py”, line 315, in command File “site-packages\serial\serialutil.py”, line 352, in timeout File “site-packages\serial\serialwin32.py”, line 222, in _reconfigure_port serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: WindowsError(5, ‘Access is denied.’) Failed to execute script esptool the selected serial port Failed to execute script esptool does not exist or your board is not connected”
Can you double-check that you don’t have any Serial Monitor window opened?
Also, can you try connecting it ti another USB port on your computer?
I was able to upload using my pc. There seem to be something wrong with the usb ports in my laptop. Although device manager is showing CP210 bridge in the COM ports, it still won’t upload. I will try to uninstall and install driver. Thanks.
Tried another approach on my laptop. Cleared unused com ports and usb devices. The board was connected to COM8 and I could get info on board. Still not uploading and saying cannot connect with COM8. Here’s the latest error message: ”
Arduino: 1.8.12 (Windows 7), Board: “ESP32 Wrover Module, Huge APP (3MB No OTA/1MB SPIFFS), QIO, 80MHz, 921600, None”
Sketch uses 278045 bytes (8%) of program storage space. Maximum is 3145728 bytes.
Global variables use 16252 bytes (4%) of dynamic memory, leaving 311428 bytes for local variables. Maximum is 327680 bytes.
An error occurred while uploading the sketch
Traceback (most recent call last):
File “esptool.py”, line 2959, in <module>
Serial port COM8
File “esptool.py”, line 2952, in _main
File “esptool.py”, line 2652, in main
File “esptool.py”, line 222, in __init__
File “site-packages\serial\__init__.py”, line 88, in serial_for_url
File “site-packages\serial\serialwin32.py”, line 62, in open
serial.serialutil.SerialException: could not open port ‘COM8’: WindowsError(2, ‘The system cannot find the file specified.’)
Failed to execute script esptool
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
That error usually means that the port is already being used by another device. If you already have the CP210 installed, I don’t know what might be causing the issue.
Here’s some suggestions to see if we can find what might be wrong.
- In your computer, you can go to the Device Manager and disable the COM port, enable it again, and restart your computer after that.
- See the suggestions in this discussion: https://github.com/espressif/arduino-esp32/issues/1137#issuecomment-367960948
I still cannot upload to my t-journal esp32 cam. After cleaning the ports and disabling/uninstalling unused usb devices, now the only error is “Failed to connect to ESP32: Timed out waiting for packet header” I am able to upload on my ESP32-S AI Thinker and stream on my laptop. The t-journal ESP32 board can upload on my pc, but not my laptop. Keep safe.
I’m sorry for that issue, I don’t know what can I suggest next to try to solve that issue. Maybe there are some compatibility issues on the laptop :/
Usually when I get that error it was because I forget to press the RST button right after clicking the upload button.
I’m sorry that I can’t help much.