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

    Can't upload with esptool.py to M5Atom on macOS Big Sur

    Scheduled Pinned Locked Moved SOFTWARE
    4 Posts 2 Posters 6.0k Views 1 Watching
    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.
    • B Offline
      blackketter
      last edited by

      I'm having trouble with uploading to an M5Atom using esptool.py on macOS Big Sur 11.2.2 with the error:

      A fatal error occurred: Timed out waiting for packet header
      

      I've tried to use the Updater_FW20200422 (suggested in another thread), but get another error with that tool:

      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.....................%
      

      Otherwise the serial port works and I am able to use esptool.py to read_mac:

      dean@lucky13 razzle % esptool.py --port  /dev/cu.usbserial-7D52471593 read_mac
      esptool.py v3.0
      Serial port /dev/cu.usbserial-7D52471593
      Connecting....
      Detecting chip type... ESP32
      Chip is ESP32-PICO-D4 (revision 1)
      Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
      Crystal is 40MHz
      MAC: 50:02:91:92:3e:e8
      Uploading stub...
      Running stub...
      Stub running...
      MAC: 50:02:91:92:3e:e8
      Hard resetting via RTS pin...
      

      Any suggestions on how to proceed?

      B 2 Replies Last reply Reply Quote 0
      • B Offline
        blackketter @blackketter
        last edited by

        Also, I updated the CP210x Macintosh OS VCP Driver to v6 and that didn't help.

        1 Reply Last reply Reply Quote 0
        • felmueF Offline
          felmue
          last edited by

          Hello Dean

          according to the description the M5Atom requires an FTDI driver.

          Note: I don't have a Big Sur installation, so I cannot tell if that will actually help.

          Cheers
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 0
          • B Offline
            blackketter @blackketter
            last edited by

            Thanks for the suggestion, @felmue, but I figured out the problem!

            The default baud rate of 460800 is too fast for this device. If I specify --baud 115200 (in platformio.ini, that would be upload_speed = 115200) it works.

            Maybe this will be useful to someone else in the future.

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post