Re: A question about configuring a USB virtual console in DTS? #dts #defconfig



On Mon, Nov 04, 2019 at 02:06:04PM -0800, wrote:
Is it compulsory to add the node "virtualcom" to configure a USB virtual
com port via USB-OTG-HS for STM32F407 under Zephyr 2.0.99?

I got the following code in DTS from a partner but it cannot be built
properly. Error indicates that virtualcom does not have necessary
properties. (It is said that the code was compiled in version 1.13.0.)
    usb_cdc: virtualcom {
        label = "CDC_ACM";
You can just remove virtualcom stuff,
samples/subsys/usb/console/prj.conf should assign right console with:


Best regards
Andrei Emeltchenko

    chosen {
        zephyr,console = &usb_cdc;
        zephyr,sram = &sram0;
        zephyr,flash = &flash0;
        zephyr,ccm = &ccm0;
&usbotg_hs {
    status = "ok";

Moreover, the sample code (usb/console) only requires to add configure
entries to defconfig so that I got confused. Thanks for your reply in

Join to automatically receive all group messages.