Well, Hello there!
My esp Wroom-32 suddenly started to show this error whenever I tried to upload any code. I had to gone through many threads discussing similar issue but couldn't find a solution. I tried changing cable, reinstalled the drivers and pressed the boot button till the Connecting... showed up. Nothing worked.
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
Board :esp WROOM-32
IDE Version : 2.2.1
Sorry for my poor grammar since English isn't my first language and thanks in advance for your help.
Update: I have bought a new 8266 and tried to upload a code on it with the same cable and it worked as it should.