-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
ESP32-S3 hangs on Serial if no Serial Monitor is connected #9004
Comments
The upcoming core 3.0.0 has the change included since it is based on IDF 5.1 |
Any idea when this will be available in Arduino-IDE 2.x? |
Arduino IDE has nothing to do which Arduino core version is used. |
Ok so when this core 3.0 version is released, I Will be able to download it in Arduino IDE? |
You can download the development version today in Arduino IDE. |
@mvermand22 - ESP32-S3 has two modes for USB CDC (it seems to be the Serial interface for this board - Not UART). Maybe this work around can solve this issue. |
I have the same problem with ESP32-C3 with platformio.
and
do not help. Arduino Core Alpha-3 based on IDF 5.1 do not work for me:
return:
|
@SuGlider thanks. I'm a bit scared of using that option, as my bord has no boot-button, only a reset button. |
@mvermand22 @pat1 @Jason2866 @lbernstone The original issue is related to the JTAG/HW CDC Serial peripheral from ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2. One issue is that when USB cable is unplugged, The second issue is that It won't work properly when the sketch waits for the CDC to be connected using a Serial Monitor, using a code like These and some other issues were fixed by the PR #9275 When USB is unplugged, nothing will block any HW CDC writing or flushing.
It has been fixed for arduino core 3.0.0-RC1 and it is available in the master branch. Check the PR examples. |
Thanks, |
@pat1 Did a Platformio build from latest master. You can test with this setup
|
@Jason2866 - I found a last potential delay issue with HW CDC not connected... PR #9307 shall be also mixed in a day or so. |
@Jason2866 work for me in Linux and ESP32-C3 |
I have found this problem. pio device monitor
Restart the serial monitor continue to get wrong characters. |
Board
ESP32-S3
Device Description
wt32-sc01-plus 3.5 inch display board with Wireless-Tag WT32-S3-WROVER chip
Hardware Configuration
no
Version
v2.0.11
IDE Name
Arduino IDE 2.2.1
Operating System
Windows 11
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
I think the issue will happen on any esp32-S3:
When you use Serial.begin(...) & Serial.println(...) in a scetch, then the board will hang if no serial monitor is opened.
See discussion: espressif/esp-idf#10324 (comment)
The arduino-esp32 in Arduino IDE 2.x should be upgraded to v5.1.2
Sketch
Debug Message
Other Steps to Reproduce
Open the Serial Monitor, reboot the board.
The led will blink.
Close the Serial Monitor, reboot the board.
The led will not blink.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: