ESP32-Wrover-Ib || MD5 of file does not match data in flash!
Posted: Mon May 30, 2022 5:55 am
Hi,
We are facing issues of ESP32 not getting programmed. While programming through espflash.py tool we are getting error " MD5 of file does not match data in flash! .
We checked further and found below observations :
1. Voltages of OK Modules and Failed Modules are compared. It is observed that Failed modules PIN No. 14 is showing 3.3V and other Pin No. 13, 17, 18, 19, 21 of ESP32 modules are showing 1.8V. Whereas OK Module voltage at Pin no. 14 is 0.
2. Pin No 14 is MTDI, i.e Boot Strapping Pins. This pin decide Voltage of Internal LDO (VDD_SDIO)
If MTDI pin is at logic low then internal regulator is configured for 3.3V supply, if MTDI pin is at logic high then internal regulator is configured for 1.8V
3. Pin No 14 is responsible to power internal SRAM and ROM. As per datasheet "ESP32-Wrover-IB" modules internal regulator works on 3.3V.
Datasheet Comment:
• Internal pull-up resistor (R9) for MTDI is not populated in the module, as the flash and SRAM in ESP32-WROVER-B
and ESP32-WROVER-IB only support a power voltage of 3.3 V (output by VDD_SDIO).
3. Now we are not sure why this happens need help here. In our schematic MTDI Pin is not powered externally. Below are the logs of failed modules.
Test Output:
esptool.py v2.6 Serial port /dev/ttyUSB0 Connecting..... Chip is ESP32D0WDQ5 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: 34:94:54:ce:db:94 Uploading stub... Running stub... Stub running... Changing baud rate to 921600 Changed. Configuring flash size... Auto-detected Flash size: 8MB Compressed 8192 bytes to 31... Writing at 0x00059000... (100 %) Wrote 8192 bytes (31 compressed) at 0x00059000 in 0.0 seconds (effective 4055.5 kbit/s)... Hash of data verified. Flash params set to 0x0230 Compressed 23984 bytes to 14939... Writing at 0x00001000... (100 %) Wrote 23984 bytes (14939 compressed) at 0x00001000 in 0.2 seconds (effective 999.1 kbit/s)... File md5: 6f5c3fe5047156b156ec6f3ff867a22b Flash md5: 4a6770888ed0f2cf57adc01e39ba17a1 MD5 of 0xFF is aaafce55c0d123a0c733139a9a60183f A fatal error occurred: MD5 of file does not match data in flash!
We are facing issues of ESP32 not getting programmed. While programming through espflash.py tool we are getting error " MD5 of file does not match data in flash! .
We checked further and found below observations :
1. Voltages of OK Modules and Failed Modules are compared. It is observed that Failed modules PIN No. 14 is showing 3.3V and other Pin No. 13, 17, 18, 19, 21 of ESP32 modules are showing 1.8V. Whereas OK Module voltage at Pin no. 14 is 0.
2. Pin No 14 is MTDI, i.e Boot Strapping Pins. This pin decide Voltage of Internal LDO (VDD_SDIO)
If MTDI pin is at logic low then internal regulator is configured for 3.3V supply, if MTDI pin is at logic high then internal regulator is configured for 1.8V
3. Pin No 14 is responsible to power internal SRAM and ROM. As per datasheet "ESP32-Wrover-IB" modules internal regulator works on 3.3V.
Datasheet Comment:
• Internal pull-up resistor (R9) for MTDI is not populated in the module, as the flash and SRAM in ESP32-WROVER-B
and ESP32-WROVER-IB only support a power voltage of 3.3 V (output by VDD_SDIO).
3. Now we are not sure why this happens need help here. In our schematic MTDI Pin is not powered externally. Below are the logs of failed modules.
Test Output:
esptool.py v2.6 Serial port /dev/ttyUSB0 Connecting..... Chip is ESP32D0WDQ5 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None MAC: 34:94:54:ce:db:94 Uploading stub... Running stub... Stub running... Changing baud rate to 921600 Changed. Configuring flash size... Auto-detected Flash size: 8MB Compressed 8192 bytes to 31... Writing at 0x00059000... (100 %) Wrote 8192 bytes (31 compressed) at 0x00059000 in 0.0 seconds (effective 4055.5 kbit/s)... Hash of data verified. Flash params set to 0x0230 Compressed 23984 bytes to 14939... Writing at 0x00001000... (100 %) Wrote 23984 bytes (14939 compressed) at 0x00001000 in 0.2 seconds (effective 999.1 kbit/s)... File md5: 6f5c3fe5047156b156ec6f3ff867a22b Flash md5: 4a6770888ed0f2cf57adc01e39ba17a1 MD5 of 0xFF is aaafce55c0d123a0c733139a9a60183f A fatal error occurred: MD5 of file does not match data in flash!