[solved] Error on make flash -- "MD5 of file does not match data in flash"

User avatar
hassan789
Posts: 131
Joined: Thu Jun 29, 2017 2:15 am

[solved] Error on make flash -- "MD5 of file does not match data in flash"

Postby hassan789 » Thu Apr 19, 2018 8:52 pm

I keep getting this error. I am unable to flash new code... even when entering bootloading manually... any ideas?

Code: Select all

Chip is unknown ESP32 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 2000000
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 19392 bytes to 11451...
Wrote 19392 bytes (11451 compressed) at 0x00001000 in 0.1 seconds (effective 2454.9 kbit/s)...
File  md5: c64ece91ff8d9285d415a82f08880ac1
Flash md5: f0aaf80a43c39fcbf175b82c66317d3a
MD5 of 0xFF is f0aaf80a43c39fcbf175b82c66317d3a

A fatal error occurred: MD5 of file does not match data in flash!
make: *** [/home/esp-idf/components/esptool_py/Makefile.projbuild:55: flash] Error 2
Last edited by hassan789 on Thu Apr 19, 2018 10:26 pm, edited 1 time in total.

User avatar
hassan789
Posts: 131
Joined: Thu Jun 29, 2017 2:15 am

Re: Error on make flash -- "MD5 of file does not match data in flash"

Postby hassan789 » Thu Apr 19, 2018 10:15 pm

odd! programming via JTAG, I get this:

Code: Select all

$ bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg -c "program_esp32 filename.bin 0x10000 verify exit"
Open On-Chip Debugger 0.10.0-dev-ga859564 (2017-07-24-16:18)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
force hard breakpoints
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : Target halted. PRO_CPU: PC=0x40090612 (active)    APP_CPU: PC=0x00000000
esp32: target state: halted
Info : esp32: Debug controller was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core was reset (pwrstat=0x5F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x5000004B (active)    APP_CPU: PC=0x00000000
esp32: target state: halted
Info : esp32: Core was reset (pwrstat=0x1F, after clear 0x0F).
Info : Target halted. PRO_CPU: PC=0x40000400 (active)    APP_CPU: PC=0x40000400
esp32: target state: halted
** Programming Started **
auto erase enabled
Info : Use core0 of target 'esp32'
Info : Target halted. PRO_CPU: PC=0x40091D07 (active)    APP_CPU: PC=0x400076E0
Info : Auto-detected flash size 4096 KB
Info : Using flash size 4096 KB
Info : Use core0 of target 'esp32'
Info : Target halted. PRO_CPU: PC=0x40091D07 (active)    APP_CPU: PC=0x400076DD
Info : Use core0 of target 'esp32'
Info : Target halted. PRO_CPU: PC=0x40091D07 (active)    APP_CPU: PC=0x400076E2
wrote 593920 bytes from file filename.bin in 2.396636s (242.006 KiB/s)
** Programming Finished **
** Verify Started **
Info : Use core0 of target 'esp32'
Info : Target halted. PRO_CPU: PC=0x40091D07 (active)    APP_CPU: PC=0x400076DD
read 593680 bytes from file filename.bin and flash bank 0 at offset 0x00010000 in 2.067608s (280.404 KiB/s)
contents differ
diff 0 address 0x00010000. Was 0xff instead of 0xe9
diff 1 address 0x00010001. Was 0xff instead of 0x07
diff 2 address 0x00010002. Was 0xff instead of 0x02
diff 3 address 0x00010003. Was 0xff instead of 0x20
diff 4 address 0x00010004. Was 0xff instead of 0x5c
diff 5 address 0x00010005. Was 0xff instead of 0x10
diff 6 address 0x00010006. Was 0xff instead of 0x08
diff 7 address 0x00010007. Was 0xff instead of 0x40
diff 8 address 0x00010008. Was 0xff instead of 0xee
diff 9 address 0x00010009. Was 0xff instead of 0x00
diff 10 address 0x0001000a. Was 0xff instead of 0x00
diff 11 address 0x0001000b. Was 0xff instead of 0x00
diff 12 address 0x0001000c. Was 0xff instead of 0x00
diff 13 address 0x0001000d. Was 0xff instead of 0x00
diff 14 address 0x0001000e. Was 0xff instead of 0x00
diff 15 address 0x0001000f. Was 0xff instead of 0x00
diff 16 address 0x00010010. Was 0xff instead of 0x00
diff 17 address 0x00010011. Was 0xff instead of 0x00
diff 18 address 0x00010012. Was 0xff instead of 0x00
diff 19 address 0x00010013. Was 0xff instead of 0x00
diff 20 address 0x00010014. Was 0xff instead of 0x00
diff 21 address 0x00010015. Was 0xff instead of 0x00
diff 22 address 0x00010016. Was 0xff instead of 0x00
diff 23 address 0x00010017. Was 0xff instead of 0x01
diff 24 address 0x00010018. Was 0xff instead of 0x20
diff 25 address 0x00010019. Was 0xff instead of 0x00
diff 26 address 0x0001001a. Was 0xff instead of 0x40
diff 27 address 0x0001001b. Was 0xff instead of 0x3f
diff 28 address 0x0001001c. Was 0xff instead of 0x2c
diff 29 address 0x0001001d. Was 0xff instead of 0x98
diff 30 address 0x0001001e. Was 0xff instead of 0x01
diff 31 address 0x0001001f. Was 0xff instead of 0x00
diff 32 address 0x00010020. Was 0xff instead of 0x00
diff 33 address 0x00010021. Was 0xff instead of 0x00
diff 34 address 0x00010022. Was 0xff instead of 0x00
diff 35 address 0x00010023. Was 0xff instead of 0x00
diff 36 address 0x00010024. Was 0xff instead of 0x00
diff 37 address 0x00010025. Was 0xff instead of 0x00
diff 38 address 0x00010026. Was 0xff instead of 0x00
diff 39 address 0x00010027. Was 0xff instead of 0x80
diff 40 address 0x00010028. Was 0xff instead of 0x00
diff 41 address 0x00010029. Was 0xff instead of 0x00
diff 42 address 0x0001002a. Was 0xff instead of 0x00
diff 43 address 0x0001002b. Was 0xff instead of 0xa0
diff 44 address 0x0001002c. Was 0xff instead of 0x00
diff 45 address 0x0001002d. Was 0xff instead of 0x00
diff 46 address 0x0001002e. Was 0xff instead of 0x00
diff 47 address 0x0001002f. Was 0xff instead of 0xc0
diff 48 address 0x00010030. Was 0xff instead of 0x00
diff 49 address 0x00010031. Was 0xff instead of 0x00
diff 50 address 0x00010032. Was 0xff instead of 0x00
diff 51 address 0x00010033. Was 0xff instead of 0xe0
diff 52 address 0x00010034. Was 0xff instead of 0x14
diff 53 address 0x00010035. Was 0xff instead of 0x14
diff 54 address 0x00010036. Was 0xff instead of 0x14
diff 55 address 0x00010037. Was 0xff instead of 0x07
diff 56 address 0x00010038. Was 0xff instead of 0x64
diff 57 address 0x00010039. Was 0xff instead of 0x00
diff 58 address 0x0001003a. Was 0xff instead of 0x00
diff 59 address 0x0001003b. Was 0xff instead of 0x00
diff 60 address 0x0001003c. Was 0xff instead of 0x02
diff 61 address 0x0001003d. Was 0xff instead of 0x04
diff 62 address 0x0001003e. Was 0xff instead of 0x0b
diff 63 address 0x0001003f. Was 0xff instead of 0x16
diff 64 address 0x00010040. Was 0xff instead of 0x02
diff 65 address 0x00010041. Was 0xff instead of 0x03
diff 66 address 0x00010042. Was 0xff instead of 0x01
diff 67 address 0x00010043. Was 0xff instead of 0x00
diff 68 address 0x0001004a. Was 0xff instead of 0x00
diff 69 address 0x0001004b. Was 0xff instead of 0x00
diff 70 address 0x0001004c. Was 0xff instead of 0x08
diff 71 address 0x0001004d. Was 0xff instead of 0x00
diff 72 address 0x0001004e. Was 0xff instead of 0x00
diff 73 address 0x0001004f. Was 0xff instead of 0x00
diff 74 address 0x00010050. Was 0xff instead of 0x06
diff 75 address 0x00010051. Was 0xff instead of 0x00
diff 76 address 0x00010052. Was 0xff instead of 0x00
diff 77 address 0x00010053. Was 0xff instead of 0x00
diff 78 address 0x00010054. Was 0xff instead of 0x06
diff 79 address 0x00010055. Was 0xff instead of 0x00
diff 80 address 0x00010056. Was 0xff instead of 0x00
diff 81 address 0x00010057. Was 0xff instead of 0x00
diff 82 address 0x00010058. Was 0xff instead of 0x00
diff 83 address 0x00010059. Was 0xff instead of 0x00
diff 84 address 0x0001005a. Was 0xff instead of 0x00
diff 85 address 0x0001005b. Was 0xff instead of 0x00
diff 86 address 0x0001005c. Was 0xff instead of 0x00
diff 87 address 0x0001005d. Was 0xff instead of 0x00
diff 88 address 0x0001005e. Was 0xff instead of 0x00
diff 89 address 0x0001005f. Was 0xff instead of 0x00
diff 90 address 0x00010060. Was 0xff instead of 0x00
diff 91 address 0x00010061. Was 0xff instead of 0x00
diff 92 address 0x00010062. Was 0xff instead of 0x00
diff 93 address 0x00010063. Was 0xff instead of 0x00
diff 94 address 0x00010064. Was 0xff instead of 0x48
diff 95 address 0x00010065. Was 0xff instead of 0x00
diff 96 address 0x00010066. Was 0xff instead of 0x00
diff 97 address 0x00010067. Was 0xff instead of 0x00
diff 98 address 0x00010068. Was 0xff instead of 0x48
diff 99 address 0x00010069. Was 0xff instead of 0x00
diff 100 address 0x0001006a. Was 0xff instead of 0x00
diff 101 address 0x0001006b. Was 0xff instead of 0x00
diff 102 address 0x0001006c. Was 0xff instead of 0x48
diff 103 address 0x0001006d. Was 0xff instead of 0x00
diff 104 address 0x0001006e. Was 0xff instead of 0x00
diff 105 address 0x0001006f. Was 0xff instead of 0x00
diff 106 address 0x00010070. Was 0xff instead of 0x48
diff 107 address 0x00010071. Was 0xff instead of 0x00
diff 108 address 0x00010072. Was 0xff instead of 0x00
diff 109 address 0x00010073. Was 0xff instead of 0x00
diff 110 address 0x00010074. Was 0xff instead of 0x48
diff 111 address 0x00010075. Was 0xff instead of 0x00
diff 112 address 0x00010076. Was 0xff instead of 0x00
diff 113 address 0x00010077. Was 0xff instead of 0x00
diff 114 address 0x00010078. Was 0xff instead of 0x48
diff 115 address 0x00010079. Was 0xff instead of 0x00
diff 116 address 0x0001007a. Was 0xff instead of 0x00
diff 117 address 0x0001007b. Was 0xff instead of 0x00
diff 118 address 0x0001007c. Was 0xff instead of 0x48
diff 119 address 0x0001007d. Was 0xff instead of 0x00
diff 120 address 0x0001007e. Was 0xff instead of 0x00
diff 121 address 0x0001007f. Was 0xff instead of 0x00
diff 122 address 0x00010080. Was 0xff instead of 0x01
diff 123 address 0x00010081. Was 0xff instead of 0x00
diff 124 address 0x00010082. Was 0xff instead of 0x00
diff 125 address 0x00010083. Was 0xff instead of 0x00
diff 126 address 0x00010084. Was 0xff instead of 0x16
diff 127 address 0x00010085. Was 0xff instead of 0xc0
More than 128 errors, the rest are not printed.
** Verify Failed **
shutdown command invoked

User avatar
hassan789
Posts: 131
Joined: Thu Jun 29, 2017 2:15 am

Re: Error on make flash -- "MD5 of file does not match data in flash"

Postby hassan789 » Thu Apr 19, 2018 10:26 pm

disconnected all wires, power, JTAG, and USB. ...fixed itself

Who is online

Users browsing this forum: fasthands, Google [Bot], maxzen and 11 guests