Error while uploading code to esp32

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header.How to resolve it?

Not enough info