I had found this tutorial very useful. It explains how to use CDC-ACM UART to get serial output via USB connection. In this tutorial it uses the CLI command DCONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y.
If you don't want to use this command each time, you can also add this to your config file (just drop the "D", as in CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y). Click link for Kconfig reference (https://docs.zephyrproject.org/latest/k ... ZE_AT_BOOT).
https://www.hackster.io/cdwilson/zephyr ... t-1-cf39f0
Otherwise, by default, you'll need to use GPIO pins 0 and 1 for serial output.
If you don't want to use this command each time, you can also add this to your config file (just drop the "D", as in CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y). Click link for Kconfig reference (https://docs.zephyrproject.org/latest/k ... ZE_AT_BOOT).
https://www.hackster.io/cdwilson/zephyr ... t-1-cf39f0
Otherwise, by default, you'll need to use GPIO pins 0 and 1 for serial output.
Statistics: Posted by gerrikoio — Thu Sep 11, 2025 9:11 pm