I was developing my code at the LILYGO T-Display-S3 on my MacBook Air, when suddenly after I pressed the 'Upload' button, the console showed an error as below:
A fatal error occurred: Failed to connect to ESP32-C3: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2
And for Windows
Serial port COM10
There was nothing weird in my code. After this I tried to change cable, upload from my Windows, also changed port number, but the error stays... I'm not able to upload even an empty sketch now. Is something wrong with a connector? I'm able to get board information in Arduino's software and also see the device on the port.
*I'm able to upload code to my esp32, so I don't think that settings, or connection cable is wrong.
Here is a screenshot of the error:
A fatal error occurred: Failed to connect to ESP32-C3: No serial data received. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html Failed uploading: uploading error: exit status 2
ls /dev/tty.*
(likewise, with the board connected or not). What's the name of the port you use on macOS?