Help me i can't upload

Sketch uses 296740 bytes (22%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20072 bytes (6%) of dynamic memory, leaving 307608 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.8.1
Serial port COM5
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x1b)! The chip needs to be in download mode.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 2

Wellcome to the best Arduino forum.
See if this tutorial help.

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