-
Notifications
You must be signed in to change notification settings - Fork 21
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
is it possible to have NCM functionality along with REPL console at the the same USB port? (IEC-259) #128
Comments
Hi @emaayan
Thus, you can have only one peripheral using the USB PHY at the time. And you can have only one functionality from one peripheral using the USB PHY at the time. Meaning: you can't have a USB application and a USB-OTG console running at the same time. In your case: You want to:
You can do that, with a following workaround:
|
actually i gave up on debugging, i'd be happy if i could get REPL console and USB-NCM in the same usb port. |
You could try creating a composite USB device with NCM and CDC interfaces and try to run some logging on the CDC interface. But I am afraid, you will not be able to run a REPL console on the TinyUSB's CDC interface. Is there some specific reason why do you want to run repl console on the same port as your USB Device application? |
simplicity sake, currently i'm usiing REPL to display a cli for some configuration, and the other port i'm using for network interface to view http server and stream TCP, so if people need to change the IP they need both USB, and what i am for is people be using a regular ali express dev boards with s3 . |
Regular esp32s3 dev boards feature both ports, if you are not targeting some of the mini series. |
FWIW, while we don't provide a ready-made integration between tinyusb's CDC and esp_console componet's REPL, writing one is not too complex. |
Answers checklist.
General issue report
i've been trying to do different combinations of settings to get the ability to both REPL console functionality (to be able to use putty and other serial terminals for cli) and at the same time still have USB port be recognized as a network card, but i can't seem to make it happen.
if i understand correctly one USB port can be used for serial communication (UART) which is by default used for REPL as well as uploading the firmware, the other USB port is used by default with jtag, as TUSB doesn't allow for debugging in jtag, (btw is it possible at all to debug in tinyusb mode?) it would seem to make sense that using CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG would allow me to get both console and networking on the same port.
The text was updated successfully, but these errors were encountered: