Re: USB Questions


Adam Podogrocki
 

Hi Anton,

regarding point 2 to use the USB device as a console, please add:
 
 CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM"
 CONFIG_USB_UART_CONSOLE=y
 CONFIG_UART_LINE_CTRL=y

samples/subsys/usb/cdc_acm/src/main.c shows that binding is got for "CDC_ACM_0", so check both option at the best.

Regards,
Adam

On Sun, 24 May 2020 at 19:03, <antoker@...> wrote:

Hi,

I've been testing out Zephyr's USB connectivity options on FRDM-K22F and got some questions:

  1. samples/subsys/usb/console/ compiles and runs okay as long as the USB is connected. If usb is not connected the application will not run, this happens, as I can see it because of flag CONFIG_USB_UART_DTR_WAIT=y. My understanding was that if i compile the app with CONFIG_USB_UART_DTR_WAIT=n the application will run immediately, however after compiling and uploading it to target the USB CDC Serial is not being recognized by the host operating system. Is it all possible to have a console via USB without the DTR flag?
  2. Is it possible to have shell redirected to USB Serial? The documentation is kinda of cryptic regarding this.

BR

Anton

Join users@lists.zephyrproject.org to automatically receive all group messages.