A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

When developing esp32 burning with vscode for the first time, the connection timed out

solution:
Press and hold boot (on the esp32 development board) for a few seconds,

Read More: