-
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
system/console/basic example input over USB does not work on ESP32-S3 (IDFGH-10484) #11731
Comments
This may be related to #9233, however the command prompt appears now. |
Could you please attach your sdkconfig file? |
Solved by adding May I suggest adding this to the |
We do mention this in the readme of the console example: https://github.com/espressif/esp-idf/tree/master/examples/system/console/basic#using-with-usb_serial_jtag |
Ah, my bad. I didn't realise my USB console had anything to do with JTAG. May I suggest: - On chips with USB_SERIAL_JTAG peripheral, console example can be used over the USB serial port.
- On chips with USB_SERIAL_JTAG peripheral (esp32-s2, esp32-s3), console example can be used over the USB serial port.
* First, connect the USB cable to the USB_SERIAL_JTAG interface.
-* Second, run idf.py menuconfig and enable CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG option.
+* Second, run idf.py menuconfig and enable CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG option, otherwise console input via USB won't work. |
Console itself doesn't have anything to do with JTAG, USB_SERIAL_JTAG is the name of the peripheral in ESP32-C3, ESP32-S3, ESP32-C6, ESP32-H2 which provides a fixed-function USB composite device with two features: CDC (serial port) and a vendor-specific JTAG adapter. Your proposed edit suggests that you might be confusing it with the USB_OTG peripheral, which indeed is available on ESP32-S2 and ESP32-S3. It is a programmable USB peripheral which can be used to implement either a device or a host. Thanks for the suggestions, we'll update the troubleshooting section of the readme file with this specific situation. |
Answers checklist.
IDF version.
v5.2-dev-1128-g03d4fa2869
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
esp32-s3
Power Supply used.
USB
What is the expected behavior?
The
examples/system/console/basic
input via usb-otg seems broken; any input over USB is not seen by the esp32-s3.Using the uart RX/TX console works just fine. Input given on the RX uart input even shows the expected output over the USB console.
Expected behaviour when I press enter:
What is the actual behavior?
Steps to reproduce.
examples/system/console/basic
Debug Logs.
No response
More Information.
I've tested this with multiple esp32s3 boards:
Using Vscode monitor, but also with
idf.py monitor
. I use 'UART' as flash method.The text was updated successfully, but these errors were encountered: