cannot upload sketch to ESP32

Ferry's picture

Offline

Joined: Sep 20, 2018

Replies: 8
cannot upload sketch to ESP32
June 14, 2019 - 4:35pm

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. 

Abhiemanyu Pandit's picture

Offline

Joined: Jan 21, 2019

Replies: 42
cannot upload sketch to ESP32
June 14, 2019 - 4:45pm

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.