A fatal error occurred: MD5 of file does not match data in flash!
-
I purchased an M5Stack Fire and it worked great for about twenty minutes. (using Win10 and Arduino)
Since then I get the error; A fatal error occurred: MD5 of file does not match data in flash!
I've spent an insane amount of time trying to find a fix. Do I just have broken hardware?
Please help.
-
@pchidley Hi, Which writer do you use? M5Burner ?
Please try the erase button once and setting Baurate 115200 bps!! -
@pchidley then...Please try these way.
- Turn upside down cable connection.
- Change cable If you have an another cable.
- Remove battery bottom.
-
@pchidley Hi, Please try this command on your terminal.
esptool --port <YOUR PORT> write_flash_status --non-volatile 0
or
esptool.py --port <YOUR PORT> write_flash_status --non-volatile 0
take care this command!!!
-
@salty_good said in A fatal error occurred: MD5 of file does not match data in flash!:
@pchidley Hi, Please try this command on your terminal.
esptool --port <YOUR PORT> write_flash_status --non-volatile 0
or
esptool.py --port <YOUR PORT> write_flash_status --non-volatile 0
take care this command!!!
Thanks this is the way to go with my M5Stack, got it new and I was never able to make it work, this command fixed it!
Great! Thanks
-
sorry for resurrecting this post from the dead but where exactly do you run the esptool --port <YOUR PORT> write_flash_status --non-volatile 0 command?
-
@mr-clay said in A fatal error occurred: MD5 of file does not match data in flash!:
sorry for resurrecting this post from the dead but where exactly do you run the esptool --port <YOUR PORT> write_flash_status --non-volatile 0 command?
You run this in a terminal or command line program.
Replace YOUR PORT with the name of the port that appears in arduino. On windows this may be COM followed by a number on OSX this is often somelike USBslab. -
This error usually means the uploaded firmware didn't flash correctly. Try these steps:
Use a different USB cable and port. Press the reset button on your M5Stack before uploading. Make sure you have the latest Arduino M5Stack libraries and board definitions. Try erasing the flash completely using esptool (esptool.py erase_flash). Reboot your PC and M5Stack.
If it persists, it could be a hardware fault, but most often it’s a flashing or connection issue.