ESP32 Issue with code upload

Sketch uses 283624 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20048 bytes (6%) of dynamic memory, leaving 307632 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.8.1
Serial port COM4
Connecting...

A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 1
void setup() {
  pinMode(2, OUTPUT);
}

void loop() {
  digitalWrite(2, HIGH);
  delay(1000);
  digitalWrite(2, LOW);
  delay(1000);
}

This is my code can i know what is the issue?

An ESP32 with a CH340 (lpoc) ?

Topic moved. Please do not post in "Uncategorized"; see the sticky topics in Uncategorized - Arduino Forum.

@webydev, what don't you understand about post #3?

Can you also answer the question in post #2?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.