-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
[v4.4 branch] [Serial JTAG console] calling esp_vfs_usb_serial_jtag_use_driver() causes device to freeze (IDFGH-8411) #9877
Comments
Wish I had more details to share. |
I can confirm that commenting out
|
My overall goal is to default to UART Console, but to switch to Serial JTAG Console when/if a USB-C Host PC is detected. I'm not sure if this is possible. @igrr we talked about something similar before. |
I think the issue here is that the "secondary" console channel is output-only, and it doesn't work with the console (which requires input). |
Thanks for the response. Yes, not being able to compile without selecting Serial Jtag as a secondary console in menuconfig is an issue I've hit. I should have mentioned that. Please keep me updated! Would love to be able to support this |
Is it possible to support 2 consoles at the same time? UART & USB Serial JTAG, both with input? If not, then I need the ability to choose at runtime! =) |
Pull Request: #9877 Just a basic start to having more flexibility. Not as good as fully dynamic, but output only is a nice start. |
Also this PR fixes the freeze, and also fixes dynamic init & deinit of consoles: #9983
|
Closing. The fix was merged. https://github.com/espressif/espidf/commit/720b8d9c1a741784cdcf73ca3cef0afb3ef92208 |
Edit: This freeze is due to the USB Serial JTAG "blocking" when no terminal is listening to the output.
This PR fixes the issue: #10208
Answers checklist.
IDF version.
v4.4.2-312-g08fa67fe92, top of branch
Development Kit.
ESP32S3 Dev Kit C
What is the expected behavior?
I expect the USB Serial JTAG Console to function.
What is the actual behavior?
Approximately ~110 milliseconds after I call esp_vfs_usb_serial_jtag_use_driver(), the device locks up.
Steps to reproduce.
Code
Additional Details:
SDK Console Config:
The text was updated successfully, but these errors were encountered: