console over cdc_acm usb with the nrf7002dk

Hi,

I tried the subsys/usb/console sample with nrf7002dk and I  have ttyACM2. docs.nordicsemi.com/.../README.html

I copy the prj.conf to the end of the prj.conf of the blinky sample, I copy the app.overlay, I copy the usbd_next_prj.conf too. And with these adaptation I do not have the ttyacm2 with the blinky sample.

an idea ?

Thx

Parents
  • Hi,

    I found the solution,

    usbd_next_prj.conf is useless, I just need

    app.overlay

    / {
    	chosen {
    		zephyr,console = &cdc_acm_uart0;
    	};
    };
    
    &zephyr_udc0 {
    	cdc_acm_uart0: cdc_acm_uart0 {
    		compatible = "zephyr,cdc-acm-uart";
    	};
    };

    and to add this to the prj.conf

    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Zephyr USB console sample"
    CONFIG_USB_DEVICE_PID=0x0004
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
    
    CONFIG_SERIAL=y
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    CONFIG_UART_LINE_CTRL=y

    As you can see, I just had to put "y" to the CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y

Reply
  • Hi,

    I found the solution,

    usbd_next_prj.conf is useless, I just need

    app.overlay

    / {
    	chosen {
    		zephyr,console = &cdc_acm_uart0;
    	};
    };
    
    &zephyr_udc0 {
    	cdc_acm_uart0: cdc_acm_uart0 {
    		compatible = "zephyr,cdc-acm-uart";
    	};
    };

    and to add this to the prj.conf

    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Zephyr USB console sample"
    CONFIG_USB_DEVICE_PID=0x0004
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y
    
    CONFIG_SERIAL=y
    CONFIG_CONSOLE=y
    CONFIG_UART_CONSOLE=y
    CONFIG_UART_LINE_CTRL=y

    As you can see, I just had to put "y" to the CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=y

Children
No Data
Related