cannot upload sketch to ESP32

Submitted by Ferry on

hey.. i am trying to upload a simple example sketch in the ESP32 DEVKITV1 board but i get following error:

esptool.py v2.6
Serial port COM4
Connecting.......
Traceback (most recent call last):
  File "esptool.py", line 2959, in <module>
  File "esptool.py", line 2952, in _main
  File "esptool.py", line 2653, in main
  File "esptool.py", line 460, 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

 

 

 help me on it as i am trying alot but cannot get the solution. i have went to different forums but no luck. i am using arduino ide to upload sketch. i tried to reinstall the arduino ide and also updated the arduino ide but it did not work. 

Hi ferry, this kind of problems mainly arise because of faulty USB cable or wrong connections. Sometimes when you buy a USB cable it is only manufactured for Charging i.e. Vcc an Gnd Line are present. and they don't have the DATA lines(D+, D-). 

in your case if i consider the faulty USB cable then you are trying to upload the sketch but because of absense of data lines, the data is not reaching to ESP32. I would recommend either you check the connections or you should change the USB cable and try again. please let me know if this works out.

 

  Joined January 21, 2019      42
Monday at 12:12 PM

I also faced these kind of issues with my ESP8266 and as well as ESP32 development boards. There are some points we have to keep in mind that we must select a high quality USB for uploading firmware in these boards. The other problem occurs especially in ESP32 boards is that when the uploading starts, you need to press the boot button on the board to start uploading your sketch. I faced this issue with my newly purchased board, I check for that issue on some forums, from where I got a response that for uploading firmware in ESP32, need to press boot button. Here I suggest you to get connect with the SSLA platform technical support team for getting better assistance regarding your queries and project support.

  Joined April 09, 2020      55
Thursday at 02:40 PM

You can crosscheck few things as directed:

1. Check the available port number, if it in not available then your USB cable is faulty.

2.Check if you have selected ESP32 under device or not.

3.If 1 and 2 are Verified, then long press the BOOT button on ESP32 after pressing uploading, until it is showing "Uploading".

  Joined August 22, 2019      125
Thursday at 12:29 PM

jaksonlee

Permalink

The ESP32 has a few common problems, specially when you are trying to upload new sketches or install the ESP32 add-on on the Arduino IDE. This guide is dedicated to the ESP32 when programmed with Arduino IDE. Here, we provide a compilation with some of the most common problems with the ESP32 and how to fix them.
There’s an add-on for the Arduino IDE that allows you to program the ESP32 using the Arduino IDE and its programming language. Follow one of the next Units to prepare your Arduino IDE to work with the ESP32 in your operating system. If at this moment you can’t find your ESP32 board name, we recommend repeating the installation process from scratch.

  Joined November 07, 2019      124
Thursday at 04:25 PM

I also faced these kinds of issues with my ESP8266 and as well as ESP32 development boards. There are some points we have to keep in mind that we must select a high quality USB for uploading firmware in these boards. The other problem occurs especially in ESP32 boards is that when the uploading starts, you need to press the boot button on the board to start uploading your sketch? I faced this issue with my newly purchased board, I checked for that issue on some forums, from where I got a response that for uploading firmware in ESP32, I need to press the boot button. Here I suggest you a new advanced product by Sierra Software Ltd. Platform named EFB-IoT, you can also get connected with their technical support team for getting better assistance regarding your queries and project support.

  Joined May 23, 2020      47
Saturday at 02:49 PM