Upload error w Arduino IDE - A fatal error... Timed out waiting for packet header

  • Hi M5Stack C sitting on win 10 (Dell XPS 15), COM5. EasyLoader looks to connect and work fine. But, Arduino IDE runs into this problem when trying to upload a sketch("Hello World").

    I have tried different things, like connecting GND-G0 and 3V3-G0. No success.

    Sketch uses 254233 bytes (19%) of program storage space. Maximum is 1310720 bytes.
    Global variables use 16676 bytes (5%) of dynamic memory, leaving 311004 bytes for local variables. Maximum is 327680 bytes.
    esptool.py v2.6
    Serial port COM5
    Chip is ESP32-PICO-D4 (revision 1)
    Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
    MAC: d8:a0:1d:56:47:60
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    Configuring flash size...

    A fatal error occurred: Timed out waiting for packet header
    A fatal error occurred: Timed out waiting for packet header

  • That isnt a big trouble.A photo about it is helpful...
    you can try to dissconnect from your USB port and then reconnect and upload.Do not touch the line while you are uploading.
    I think you touched the USB line while uploading.

  • Have you tried changing the baud rates?
    There are many reasons for the timeout.

  • M5Stack

    Hi, you should selcet M5StickC board in ther board manager. or seting the baud rate to 115200