"An error occurred while uploading sketch" - Esp32

Tshiamo's picture


Joined: Aug 30, 2020

Replies: 0
"An error occurred while uploading sketch" - Esp32
August 30, 2020 - 1:45am

Hey I've been trying to upload a sketch on my esp32-wroom board and keep gettin this error

Arduino: 1.8.13 (Windows Store (Windows 10), Board: "FireBeetle-ESP32, 80MHz, 921600"

Sketch uses 207705 bytes (15%) of program storage space. Maximum is 1310720 bytes.

Global variables use 15228 bytes (4%) of dynamic memory, leaving 312452 bytes for local variables. Maximum is 327680 bytes.

esptool.py v2.6

Serial port COM5


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 322, in command

  File "esptool.py", line 285, in write

  File "site-packages\serial\serialwin32.py", line 323, in write

serial.serialutil.SerialTimeoutException: Write timeout

Failed to execute script esptool

An error occurred while uploading the sketch

I would really appreciate any help. Thank you in advance.

Debashis Das's picture


Joined: Dec 02, 2019

Replies: 117

When you plug in your ESP32 to your PC, do you hear the sound? If not, try a different USB cable.

Make sure you have selected the right COM port for your ESP32 module, from the tools > port menu

Also check your windows device manager​ for missing drivers.