Led blink code using NodeMCu

Usually this message appears when the board does not change into upload mode (some ESP32 boards do have a "boot" button that has to be pressed in this case).

The problem does not seem to be new: Please feel free to have a look at this

https://forum.arduino.cc/t/esp-8266-timed-out-waiting-for-packet-header/597634