Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 898 Bytes

README.rst

File metadata and controls

36 lines (25 loc) · 898 Bytes

CDC-ACM Console Snippet (cdc-acm-console)

west build -S cdc-acm-console [...]

Overview

This snippet redirects serial console output to a CDC ACM UART. The USB device which should be used is configured using devicetree.

Requirements

Hardware support for:

  • :kconfigCONFIG_USB_DEVICE_STACK
  • :kconfigCONFIG_SERIAL
  • :kconfigCONFIG_CONSOLE
  • :kconfigCONFIG_UART_CONSOLE
  • :kconfigCONFIG_UART_LINE_CTRL

A devicetree node with node label zephyr_udc0 that points to an enabled USB device node with driver support. This should look roughly like this in your devicetree <get-devicetree-outputs>:

zephyr_udc0: usbd@deadbeef {
 compatible = "vnd,usb-device";
     /* ... */
};