ESP32-c3 built in usb cdc loses bytes?

I have a project that uses an esp32-c3 supermini as its microcontroller board, and has a way to upload a text file to it. Because the file is usually small, I'm sending it one byte at a time, and expecting an echo of the same byte from the esp. However, sometimes the echo just gets lost, thus my upload script hangs as it relies on the echo for sending the next byte. (edit: it's not the echo that gets lost, but the byte sent by the python script) I found an arduino forum post from 2023 (I think) with this same issue, but I have no idea if it's my code's or the esp's or maybe the arduino core's fault For testing the issue, I'm using a 1 000 000 byte text file, but it also happens with smaller ones Also, I'm using PlatformIO if that even matters
1 Reply
Maverick
Maverick4d ago
Try to reproduce the problem with minimal code. If you can't, the code is the problem.

Did you find this page helpful?