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.

 

Muhammad Umar's picture

Offline

Joined: Apr 09, 2020

Replies: 55
Sketch Uploading issues for ESP-32
May 15, 2020 - 6:52pm

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.

Debasis Parida's picture

Offline

Joined: Aug 22, 2019

Replies: 124
Few things to check
May 16, 2020 - 6:26pm

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".

jaksonlee's picture

Offline

Joined: Nov 07, 2019

Replies: 122
The ESP32 has a few common
May 17, 2020 - 10:22pm

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.

Technical Shahzad's picture

Offline

Joined: May 23, 2020

Replies: 48
Use of Boot Push Button on Board
May 27, 2020 - 4:30pm

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.