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