Skip to content

Instantly share code, notes, and snippets.

@szczys
Created November 12, 2025 15:26
Show Gist options
  • Select an option

  • Save szczys/2d455cf39a7566dd5b4921cf125fadb2 to your computer and use it in GitHub Desktop.

Select an option

Save szczys/2d455cf39a7566dd5b4921cf125fadb2 to your computer and use it in GitHub Desktop.
Zephyr overlay file for using USB-CDC with the Raspberry Pi Pico2 w
/ {
chosen {
zephyr,shell = &cdc_acm_uart0;
zephyr,console = &cdc_acm_uart0;
};
};
&zephyr_udc0 {
cdc_acm_uart0: cdc_acm_uart0 {
status = "okay";
compatible = "zephyr,cdc-acm-uart";
label = "Zephyr USB CDC-ACM";
};
};
@szczys
Copy link
Author

szczys commented Nov 12, 2025

This app.overlay gets the Raspberry Pi Pico2 w working with the Zephyr USB-CDC sample.

west build -p -b rpi_pico2/rp2350a/m33/w zephyr/samples/subsys/usb/cdc_acm -- -DCONFIG_SHELL=y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment