Page 1 of 1

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

Posted: Thu Feb 22, 2024 3:49 pm
by Ech0__
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 693 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.

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

Posted: Fri Feb 23, 2024 2:28 am
by ESP_Sprite
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?

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

Posted: Fri Feb 23, 2024 3:16 am
by Ech0__
VDD_SDIO keep HIGH all the time. The pin does not trigger the oscilloscope, steady at 3V3.

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

Posted: Fri Feb 23, 2024 3:31 am
by Ech0__
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.