ESP32 v2.6 error


After following instructions from (Programming ESP32 Board with Arduino IDE) I am trying to upload this code to my ESP32

int LED_BUILTIN = 2;
void setup() {
void loop() {

digitalWrite(LED_BUILTIN, HIGH);
digitalWrite(LED_BUILTIN, LOW);

However i get this error

Arduino: 1.8.10 Hourly Build 2019/04/18 12:33 (Windows 10), Board: “ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None”

Sketch uses 194488 bytes (14%) of program storage space. Maximum is 1310720 bytes.
Global variables use 13340 bytes (4%) of dynamic memory, leaving 314340 bytes for local variables. Maximum is 327680 bytes. v2.6
Serial port COM6
Connecting……____An error occurred while uploading the sketch

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
no protocol:

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Have you tried uploading again? It's possible this is a problem that only occurs occasionally, while other uploads work fine.

Hello I am facing this same problem too . Have you found a way to fix it ? can you please share with me ?

If you have not resovled this errors, you can refer to link "ESP32 Troubleshooting Guide | Random Nerd Tutorials" (section 4)