Page 1 of 1

ESP32-S3 - System hangs on Serial.flush() IF serial console is not connected.

Posted: Thu Jan 26, 2023 1:27 pm
by PeteG5000
I have been working with ESP boards for a while and I like to use Serial.flush() for debugging purposes.

This has always worked in the past with no problems.

I have just recently started using the ESP32-S3 modules and have run into the following issue:

If I use Serial.flush() the call will hang forever if I do not have the USB connection to my computer AND I do not have a serial console started. As soon as I connect USB and then start serial console the code moves past Serial.flush().

I am using Visual Studio Code with PlatformIO.

On other modules like ESP32-S2 I do not have this issue. Serial.flush() does NOT hang if I do not have USB and console connected.

Just wondering if anyone has run into this?

Thank You,

-Pete

Re: ESP32-S3 - System hangs on Serial.flush() IF serial console is not connected.

Posted: Fri Dec 15, 2023 7:22 am
by mvermand@gmail.com
Did you ever solve this? I'm having the same issue! Thanks.