-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32-S3 Serial.print() calls when not connected to USB cause delays. #8251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@sblantipodi - What is the version of the Arduino Core you have used? I have just tested it (for 5 minutes - with USB plugged and unplugged + closing the Serial Terminal while printing the USB messages etc) using the Arduino IDE 1.8.15 and Arduino Core 2.0.9. I seems to be an issue with the PlatformIO configuration used. |
I'm using [email protected] that uses the issue is there, the fix reduces the lag but not eliminates it. |
I am driving 100 LEDs at 100FPS with Luciferin. if I Serial.print() various messages every 10 seconds, the framerate goes down to an average of 85FPS. if I attach the Serial console while driving the LEDs, the average framerate goes back to 100FPS. This does not happen on S2. |
@sblantipodi - I can replicate the issue here when I use the HW CDC USB peripheral of the S3. There is a way to eliminate the delay completely from the HW JTAG/CDC USB port by caling When using the USB OTG CDC port of the S3, the delay issue never happens, like in the S2. void setup() {
// put your setup code here, to run once:
Serial.setTxTimeoutMs(0);
Serial.begin(115200);
} Please try it and let me know. |
You can also set the USB CDC peripheral that you want to use as your
USB Mode ==> Hardware CDC and JTAG
USB Mode ==> USB-OTG (TinyUSB) This option may require the board to be manually reset after uploading a new sketch, by pressing the RESET or EN button of the board. |
@SuGlider this fixed my issue when using HW JTAG/CDC USB. closing the issue. |
Board
Lolin ESP32-S3
Device Description
Lolin ESP32-S3 and UM S3
Hardware Configuration
no GPIO connected
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
Win11
Flash frequency
80MHzù
PSRAM enabled
no
Upload speed
115200
Description
This is a duplicate issue of
#6983
the workaround described in that issue does not work on S3 but the issue is the same.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: