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

    Unable to verify flash chip connection

    Scheduled Pinned Locked Moved Arduino
    5 Posts 3 Posters 6.5k Views
    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.
    • H Offline
      hidarrin
      last edited by

      Hi, everyone. I'm getting the following when I try to upload a sketch to my m5Stack Core Basic:

      Sketch uses 230493 bytes (17%) of program storage space. Maximum is 1310720 bytes.
      Global variables use 20968 bytes (6%) of dynamic memory, leaving 306712 bytes for local variables. Maximum is 327680 bytes.
      esptool.py v4.5.1
      Serial port /dev/cu.usbserial-556E0263581
      Connecting.....
      Chip is ESP32-D0WDQ6-V3 (revision v3.0)
      Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
      Crystal is 40MHz
      MAC: b0:b2:1c:51:83:80
      Uploading stub...
      Running stub...
      Stub running...
      Changing baud rate to 921600
      Changed.

      A fatal error occurred: Unable to verify flash chip connection (Invalid head of packet (0xE0): Possible serial noise or corruption.).
      Failed uploading: uploading error: exit status 2

      I searched this forum for this, and I'm not optimistic this will be an easy fix, since I don't see anyone else running into this.

      This is just a blank sketch.

      Any thoughts on how to get around this? I'm on a Mac. Thanks!

      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT Offline
        teastain @hidarrin
        last edited by

        @hidarrin Might try a slower upload speed or a better cable.
        What sketch is currently running in the Core, right now?
        A blank sketch needs a delay, at least 100ms in the Loop or ideally a Serial print statement to test that the upload was in fact successful with the serial monitor.

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          hidarrin @teastain
          last edited by

          @teastain Thanks for the reply.

          I've tried multiple cables. Some high-end ones. No change.

          The default sketch that ships on the Core was giving me this error, so I wiped with esptool, and same error.

          How do I slow the upload speed?

          Thanks again.

          1 Reply Last reply Reply Quote 0
          • H Offline
            hidarrin
            last edited by

            SOLVED:

            I found the upload speed setting, and sure enough, that fixed it. Thanks!

            1 Reply Last reply Reply Quote 1
            • H Offline
              hacxx
              last edited by

              Try lowering the baud rate to 115200 in the upload settings—921600 can sometimes cause issues, especially on macOS. Also, double-check your USB cable (some are power-only), and try a different USB port or hub. If you're using a USB-C to serial adapter, that might be causing noise.

              1 Reply Last reply Reply Quote 0

              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