XIAO_ESP32C3: No serial data received

my script is:

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println(“Foo”);
}

void loop() {
Serial.println(“Bar”);
}

And when uploaded I get:

esptool.py v4.2.1
Serial port COM13
Connecting…
Chip is ESP32-C3 (revision 4)
Features: Wi-Fi
Crystal is 40MHz
MAC: 34:85:18:03:24:68
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600

A fatal error occurred: No serial data received.
A fatal error occurred: No serial data received.

I had this same issue. It was strange because micropython was already on the device so I could connect with putty and interact with micropython, proof that both the RX/TX lines were working.

I then held down the boot button while plugin, and was able to reflash the device. I think that somehow my code was preventing it from working correctly as after the first time of reflashing, I no longer had to hold down the button to reflash.

Maybe same issue for you, IDK

1 Like

Uploading firmware and MicroPyhton REPL communication uses the USB port, not the UART interface. And you do not neet to push the boot button for firmware uploading because esptool.py switches the board itself to boot mode.
I do not know an answer to the problem of @nefarious. I rarely use the Arduino environment. From the log, the board switches properly to boot loader mode, but then no software is uploaded, Could be a configuration issue with Arduino and the OS.

I have been working with this device for a while without issue and had put it aside for a month. I pull it back out and now I hit this same exact issue. Hold the boot was plugging it in allowed a once time upload but when it was done it failed to reconnect.

Workaround is to set the upload speed to 115200 (default is 921600). This seems to allow normal operation again.

What I suspect has happened is that the serial driver was updated/patched/replaced in Windows causing some incompatibility (a lot of security fixes and patches in the last few weeks from PC maker and Microsoft).

It worked for me here… Thank you

What if someone has used the UART interface?

How to revert it back?

I had the same issue my ESP32-S3 XIAO but i managed to fix that by setting the serial baud rate to 115200 and go to tools>USB CDC on BOOT> Enabled!
Hope it works. Happy hacking :slight_smile: