🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5StickC/ATOM on MacOS Catalina can't upload/ ESP32: Timed out waiting for packet header solution (Solved)

    Official Updates
    19
    44
    209.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • m5stackM
      m5stack @tokuhira
      last edited by

      @tokuhira when you received the product can't upload programs? the machine that failed to update, can the program be burned normally now?

      1 Reply Last reply Reply Quote 0
      • D
        DannyG86
        last edited by

        I've got similar problems: Not being able to burn anything from VSCode/PlatformIO with the same error message.
        Running under macOS Big Sur. Trying to use the M5AtomLite

        I finally got it working under Arduino IDE, being able to burn code.
        The UIFlo software also works, partially. With the M5Burner I can erase and burn the UIFlow software, setting it to USB mode, and after that, it is able to burn a new program with UIFlow (using 1.7.2 beta). But after each burn, the connection gets lost and I need to go to M5Burner separately, erase the Atom and burn UIFlow again, and setting it to USB-mode.

        But my prime concern is using VSCode, which doesn't work
        Using Board definition pico32.

        1 Reply Last reply Reply Quote 0
        • P
          patf
          last edited by patf

          @DannyG86 can you please post your "platformio.ini" file? And also your #include and setup() code. I am on mac Big Sur v11.3 and can reliably program M5StickC, StickC Plus, Atom and Fire using PlatformIO.

          1 Reply Last reply Reply Quote 0
          • P
            peasus
            last edited by

            I'm on Mac OS 12.2.1, and I'm running into the problem listed in this topic.

            Changing baud rate to 460800
            Changed.
            Configuring flash size...

            A fatal error occurred: Timed out waiting for packet header
            *** [upload] Error 2
            ============================================= [FAILED] Took 4.46 seconds =============================================
            The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.

            When using the supplied firmware update tool, I'm getting following error:

            Detecting M5Stack products.
            Find M5Stack products.
            Kernel driver deteched.
            Apply magic success.

            Fail to cast magic stage 2, please contact vendor.
            Waiting for device in DFU mode.....................
            Saving session...
            ...copying shared history...
            ...saving history...truncating history files...
            ...completed.

            [Process completed]

            Any suggestions would be appreciated. Thank you!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post