This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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

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


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


Hardware support for:

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:

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