-
Notifications
You must be signed in to change notification settings - Fork 7.2k
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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+CONFIG_CONSOLE_USB_SERIAL_JTAG: System hangs unless host serial port is opened (IDFGH-8906) #10324
Comments
Thanks @chipweinberger . I confirmed that PR fixes the issue. |
The fix was merged. 720b8d9 |
Hi! |
Any status update on this? Any temporary fixes? This is a really annoying issue. |
Ok, thanks, I'm not that experienced... |
@mvermand22 not sure if you can fix it yourself. You'll need to wait for Arduino to update to v5.1.2 |
|
Is it this one? https://github.com/espressif/arduino-esp32 |
Answers checklist.
IDF version.
v5.1-dev-2186-g454aeb3a48
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Adafruit ESP32-S3 Feather
Power Supply used.
USB
What is the expected behavior?
Given the following:
CONFIG_CONSOLE_USB_SERIAL_JTAG=y
, andexamples/system/console/basic
It's expected that the system should operate normally, regardless of whether the host machine has opened the USB serial port (via
idf.py monitor
or other serial terminal).The indication of "operating normally" in that modified console example is that the red LED should come on for 1 second, then turn off, indicating that the system is not stuck/hanging.
What is the actual behavior?
If the host machine has opened the serial port to the device, the system operates normally (red LED comes on for 1 second, then turns off).
If the host machine has not opened the serial port to the device, the system hangs. The red LED comes on, then never shuts off. However, if at any point in time the host machine connects with a serial terminal (e.g
picocom
), then the system begins normal operation (red LED turned off, console shell is usable).Steps to reproduce.
examples/system/console/basic
:Debug Logs.
More Information.
I've distilled the issue down to the simplest example I could think of.
I suspect any ESP32-S3 board with
CONFIG_CONSOLE_USB_SERIAL_JTAG=y
will exhibit this issue, but I've only tested with the Adafruit board, so I don't know for sure.I originally discovered this issue when trying to build an ESP32-S3 application with
CONFIG_CONSOLE_USB_SERIAL_JTAG=y
. I noticed that everything worked perfectly when usingidf.py monitor
with a USB-C cable connected to my host machine, but it would hang in either of these scenarios:The text was updated successfully, but these errors were encountered: