r/esp32 • u/LeonardoM1234 • 4d ago
Software help needed no serial data received error
for context i have been working on a couple projects over the last couple weeks using some esp32s3 i ordered, so far i have had no issues with them up until last night, when i suddenly started getting this error of "no serial data received"
so far among the things i have tried:
-pressing and holding the boot button during uploads
-holding boot and pressing rst during uploads
-different cable for upload
-updated drivers for my boards
-uploading with no wiring attached
-using a different device to attempt an upload
-using those websites that check for activity on the board (same error appears)
-restarting PC
What's most confusing to me is that this just happened randomly, I had literally uploaded something 2 mins earlier and all of a sudden this error appeared, even on boards that i know work because their projects are still functioning, another thing is i opened some of my sealed esp boards and they uploaded just fine, both the fake and real ones so i am utterly confused as to what to do because i don't wanna throw away perfectly good esp boards so as a last effort I'm asking if u guys could please help me out!
2
u/Kv603 4d ago edited 4d ago
What brand and model of esp32s3?
When you connect the USB cable, does the PC detect the board as a new serial device? If you connect the device and then connect a terminal emulator to the detected serial device (e.g. "com4") at 115200 baud, does any serial output appear (try hitting reset).
Some dev boards, especially clones with "fake" USB-serial adapters on the board, are very static-sensitive and the USB to serial adapter can just go brain dead. I've got two Adafruit boards which are now just sending "noise" to the terminal, can no longer accept an upload over USB.
If your boards expose the default UART0 serial pins (usually labeled RX0 and TX0), you can connect an appropriate serial adapter to those pins and re-flash the board that way.
2
u/QuietHours1 3d ago
That one bit me on an S3 as well. The old sketch still running is actually a useful clue, it means the flash is fine and the chip just is not getting into download mode.
Two things that helped me when the usual BOOT and RST dance stopped working. First, the timing matters more than holding the buttons. Hold BOOT, tap RST, then keep holding BOOT until esptool actually starts connecting, I used to let go too early and it would just boot the old sketch again.
Second, if that still fails, try uploading over the UART pins instead of the USB port. I rescued a board like that with a cheap USB to serial adapter wired to RX0 and TX0, with GPIO0 pulled low at reset. It bypassed whatever had gone flaky with the onboard USB and got a clean sketch back on, after that the USB uploads worked again.
1
u/MHTMakerspace 4d ago
First thing we do when starting a new sketch is add stock code which enables WiFi and ArduinoOTA, so as long as the sketch boots, we can use OTA to upload fresh firmware.
Can also force OTA rollback on panic to allow for recovering from uploading faulty firmware.
1
u/Significant-Price695 4d ago
does the com port still show up at all? on the s3 a sketch flashed with "usb cdc on boot" disabled makes the native usb port vanish and it looks exactly like this. if that's it, hold boot, plug it in, and erase flash with esptool from the command line, then reflash with cdc enabled. and if the port is gone entirely even after that, try another computer before assuming the board died
1
u/hayleygyl 4d ago
What changed between the last successful upload and the first failed one? Since the new boards work fine, I’d compare the upload settings and try lowering the upload speed to 115200 before assuming it’s a hardware issue