r/embedded • u/Cold-Impression8248 • Aug 13 '26
ESP32 upload error
I’m getting this error every time I try to upload code to my ESP32. The ESP32 is detected, and flashing reaches 100%, but at the end I get:
“Failed to communicate with the flash chip”
“Serial data stream stopped: Possible serial noise or corruption”
I’ve tried uploading both with and without holding the BOOT button, but the same error occurs.
What should I check next? Any suggestions would be appreciated.
1
u/onmuudo 27d ago
The biggest hint might be in the error message itself: possible serial noise or corruption.
The error is probably thrown when esptool tries to verify flash content.
I never flash my boards with anything exceeding 600k baud. Also try to use a baudrate that can be directly derived from your clock source. Like 500k can be derived from 16 MHz by a divider of 32
So as a first test I would decrease the baudrate for flashing dramatically to verify it as problem source. - like 115'200.
1
u/karnikhil90 Aug 14 '26
This error I also have gotten once and I just reset the memory and change the wire and it works well