MD5 of File doesnot match data in flash Error with ESP32 S3

ninjas005
Posts: 3
Joined: Mon Jul 17, 2023 9:17 am

MD5 of File doesnot match data in flash Error with ESP32 S3

Postby ninjas005 » Mon Jul 17, 2023 9:20 am

I am getting the ```fatal error MD5 of file not match data in flash```. Below is the output of upload.

[2/3] cmd.exe /C "cd /D D:\Espressif\frameworks\esp-idf-v4.4\components\esptool_py && D:\Espressif\tools\cmake\3.20.3\bin\cmake.exe -D IDF_PATH="D:/Espressif/frameworks/esp-idf-v4.4" -D SERIAL_TOOL="python D:/Espressif/frameworks/esp-idf-v4.4/components/esptool_py/esptool/esptool.py --chip esp32s3" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="D:/Users/INOMETRICS/espressif/workspace/blink/build" -P D:/Espressif/frameworks/esp-idf-v4.4/components/esptool_py/run_serial_tool.cmake"
esptool.py esp32s3 -p COM8 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 blink.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.2-dev
Serial port COM8
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 70:04:1d:be:ab:74
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00041fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20864 bytes to 13002...
Writing at 0x00000000... (100 %)
Wrote 20864 bytes (13002 compressed) at 0x00000000 in 0.1 seconds (effective 1284.4 kbit/s)...
File md5: 1d4bc050825217f8434a2cfd167894cd
Flash md5: 1b32e380d00eb036ce18a632dedbe04d
MD5 of 0xFF is b145c0e952abec491d69c8c5f8ac47c4

A fatal error occurred: MD5 of file does not match data in flash!
CMake Error at run_serial_tool.cmake:56 (message):
python
D:/Espressif/frameworks/esp-idf-v4.4/components/esptool_py/esptool/esptool.py
--chip esp32s3 failed

I am getting the same error while uploading with esp-idf and Arduino ide or platformio.

How could i solve the issue.

Regards

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: MD5 of File doesnot match data in flash Error with ESP32 S3

Postby ESP_Sprite » Tue Jul 18, 2023 1:15 am

What hardware do you use? Anything connected to GPIO45?

ninjas005
Posts: 3
Joined: Mon Jul 17, 2023 9:17 am

Re: MD5 of File doesnot match data in flash Error with ESP32 S3

Postby ninjas005 » Tue Jul 18, 2023 5:59 am

Yes I have connected an LED to pin 45, running a blink script. I tried using ESP-IDF and Arduino framework. Both are showing same error. I am using a custom board built on ESP32-S3-WROOM-1U.

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: MD5 of File doesnot match data in flash Error with ESP32 S3

Postby ESP_Sprite » Tue Jul 18, 2023 10:07 am

Yeah, you're likely pulling GPIO45 high. That pin is a bootstrap pin, which when pulled high runs the flash at 1.8V; given that your module has a 3.3V part it doesn't like that. Two options to fix this; pick one of the two:
- Change your PCB to make sure that pin is low on reset
- Use espefuse.py to burn the EFUSE_VDD_SPI_FORCE fuse. This will make the chip ignore GPIO45 and always run the flash at 3.3V.

ninjas005
Posts: 3
Joined: Mon Jul 17, 2023 9:17 am

Re: MD5 of File doesnot match data in flash Error with ESP32 S3

Postby ninjas005 » Tue Jul 18, 2023 12:22 pm

Yes, Thank you.. It worked. I shorted Pin 45 to ground. :D :D :D

Who is online

Users browsing this forum: No registered users and 94 guests