Page 1 of 1

Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Thu Feb 22, 2024 3:22 am
by mattkime
I'm attempting to flash but keep running into this problem. I'm able to flash an ESP32 without problem so I think my serial port and cable are fine.

Is there a way to fix it?

Code: Select all

➜  esphome esptool.py --before default_reset --after hard_reset --baud 115200 --port /dev/cu.usbserial-ABSCDMU6 --chip esp8266 write_flash -z --flash_size detect 0x0 /Users/-----/esphome/.esphome/build/athom-garage-door/.pioenvs/athom-garage-door/firmware.bin
esptool.py v4.7.0
Serial port /dev/cu.usbserial-ABSCDMU6
Connecting....
Chip is ESP8285H16
Features: WiFi, Embedded Flash
Crystal is 26MHz
MAC: e0:98:06:f9:a6:09
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 2MB
Flash will be erased from 0x00000000 to 0x0007afff...
Flash params set to 0x0330
Compressed 499952 bytes to 340708...
Writing at 0x00075332... (100 %)
A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption.

Re: Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Thu Feb 22, 2024 4:30 pm
by Inq720
Do you realize you're in the wrong section? This is for ESP8266 and an ESP32 is a different beast. You might get more responses of people that work with ESP32 if you put it in a different section. If you're actually having problems with an ESP8266, you might include the model and how you're trying to program it. Particularly you might be trying to upload too fast. If you're trying to upload at 3M, might cause this issue. I typically use the 921600 setting and have never had trouble. Keep working down in speed till your upload is good.

Re: Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Thu Feb 22, 2024 5:03 pm
by mattkime
> This is for ESP8266 and an ESP32 is a different beast.

Yes, I'm attempting to flash a ESP8266, specifically the 8285 variant. Yes, I used an ESP32 to verify my setup is working as its the closest match I have.

>and how you're trying to program it.

I'm using esptool as shown in the console output I included.

> Particularly you might be trying to upload too fast.

You can see in the console output that I used --baud 115200 and it still failed. I'm not sure what the lowest useful value is but I'm open to trying it.

Re: Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Fri Feb 23, 2024 2:38 am
by ESP_Sprite
Still smells like a connection issue. Are the gnd of your cable and the ESP chip connected?

Re: Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Fri Feb 23, 2024 3:55 am
by mattkime
>Are the gnd of your cable and the ESP chip connected?

Yes, they're connected. I'm interested in hearing what else I might try to address connection problems.

I have made some progress - I'm able to do a simple flash but my full featured flashes are failing either via serial or OTA.

Re: Is my chip dead? Serial data stream stopped: Possible serial noise or corruption.

Posted: Fri Feb 23, 2024 7:12 am
by ESP_Sprite
That indicates communication issues. Given the fact that you're seeing them at a reasonably low baud rate, I'd suspect your serial hardware. If you have a scope, you can see if the serial signals get corrupted somewhere between the USB-serial thing and your ESP.