Unable to verify flash chip connection
-
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 2I 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!
-
@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. -
@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.
-
SOLVED:
I found the upload speed setting, and sure enough, that fixed it. Thanks!
-
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.
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