Trying to debug NodeMCU 0.9 MD5 does not match in flash error

Hello,

I got a bad NodeMCU 0.9 (vendor agreed that and is going refund the amount)

My issue is, whenever I try to flash a program, I get below error, "esptool.FatalError: MD5 of file does not match data in flash!"

After some research, I found that my issue is same as described here

I did all those troubleshooting steps there such as running,
python -m esptool --chip esp8266 --port COM12 --baud 115200 --after hard_reset erase_flash
and then I ran,
python -m esptool --port COM12 write_flash_status --non-volatile 0
and output looks like below,
esptool.py v2.8
Serial port COM8
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:64:c9:d3:b1:f1
Running stub...
Stub running...
Initial flash status: 0x1be4
Setting flash status: 0x0000
After flash status: 0x1be4

From above I understand its not setting flash status to 0x0000 but remains same (always) 0x1be4
At this point only my vendor agreed that its bad chip and he will refund.

Out of my curiosity, I took a compiled binary from below program (I grabbed from C:\Users\xx\AppData\Local\Temp\arduino\sketches\C419D2A959D86FCB7740BCB846F4FDB8)

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("Hello World!");
  delay(1000);
}

and ran below command,
python -m esptool --port COM12 --baud 115200 write_flash 0x1b64 sketch_jul2a.ino.bin
and it successfully flashed!
However when I open the serial monitor and set correct baud rate 9600, I see nothing get printed.

Any thoughts?

I also tried editing line 55 of C:\Users\xxxx\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\tools\upload.py as cmdline = cmdline + ['0x1b64', binary]
And now I can compile and flash successfully via Arduino IDE as well, but no output on serial monitor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.