Sketch uses 279189 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20256 bytes (6%) of dynamic memory, leaving 307424 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port COM10
Connecting…
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 2
this is the error showing while uploading the code using arduino IDE