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

mattkime
Posts: 3
Joined: Thu Feb 22, 2024 3:18 am

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

Postby mattkime » Thu Feb 22, 2024 3:22 am

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.

User avatar
Inq720
Posts: 38
Joined: Fri Dec 22, 2023 1:36 pm
Location: North Carolina, USA
Contact:

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

Postby Inq720 » Thu Feb 22, 2024 4:30 pm

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.

mattkime
Posts: 3
Joined: Thu Feb 22, 2024 3:18 am

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

Postby mattkime » Thu Feb 22, 2024 5:03 pm

> 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.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Feb 23, 2024 2:38 am

Still smells like a connection issue. Are the gnd of your cable and the ESP chip connected?

mattkime
Posts: 3
Joined: Thu Feb 22, 2024 3:18 am

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

Postby mattkime » Fri Feb 23, 2024 3:55 am

>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.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Feb 23, 2024 7:12 am

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.

Who is online

Users browsing this forum: No registered users and 6 guests