ESP32-D0WDQ6-V3 showing "MD5 of file does not match data in flash!" message

Ech0__
Posts: 3
Joined: Thu Feb 22, 2024 3:26 pm

ESP32-D0WDQ6-V3 showing "MD5 of file does not match data in flash!" message

Postby Ech0__ » Thu Feb 22, 2024 3:49 pm

Hello,
I've designed a custom board which uses the ESP32-D0WDQ6-V3 chip, as shown in the schematic below:
ckt.png
ckt.png (352.64 KiB) Viewed 692 times
Note: the pins GPIO0 and CHIP_PU are being driven by a STM32. The STM32 reads the pins of a nodemcu dev board and mirror these pins states into the GPIO0 and CHIP_PU to program the ESP32. Also, MTDI pin is intended to be low at the begining of the stm32 code.

Programming ESP32 works (sometimes), but now the problem is that through arduino IDE I got the message "MD5 of file does not match data in flash!", so it doesn't download the binary into the chip (fail).

I've tried some codes over esptool, but none manage to make me able to programe the chip. The tried commands are:

esptool --chip esp32 --port COM9 --baud 9600 --after hard_reset erase_flash
esptool --port COM9 write_flash_status --non-volatile 0
esptool --no-stub --chip esp32 --port COM9 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 Desktop\Espressif\ESP32-WROVER-V2.4.0.0\bootloader
Please, I need a help.

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

Re: ESP32-D0WDQ6-V3 showing "MD5 of file does not match data in flash!" message

Postby ESP_Sprite » Fri Feb 23, 2024 2:28 am

Ech0__ wrote:
Thu Feb 22, 2024 3:49 pm
Also, MTDI pin is intended to be low at the begining of the stm32 code.
Are you sure this is the case? Can you measure what VDD_SIO is while programming, just in case?

Ech0__
Posts: 3
Joined: Thu Feb 22, 2024 3:26 pm

Re: ESP32-D0WDQ6-V3 showing "MD5 of file does not match data in flash!" message

Postby Ech0__ » Fri Feb 23, 2024 3:16 am

VDD_SDIO keep HIGH all the time. The pin does not trigger the oscilloscope, steady at 3V3.
Last edited by Ech0__ on Fri Feb 23, 2024 8:36 am, edited 1 time in total.

Ech0__
Posts: 3
Joined: Thu Feb 22, 2024 3:26 pm

Re: ESP32-D0WDQ6-V3 showing "MD5 of file does not match data in flash!" message

Postby Ech0__ » Fri Feb 23, 2024 3:31 am

Also, note that in my schematic the VDD_SDIO is not connected to the memory chip.
My board is now back to life: the solution was to change from a memory of 16MB to a memory of 4MB. Shouldn't the 16MB work just fine? (I am asking to know if it was a problem with the part number of that memory of 16MB or if 16MB is too high for this ESP32 model).
In addition, please explain what MD5 means in terms of problems and in termos of wrong pin voltage settings.

Who is online

Users browsing this forum: No registered users and 84 guests