usb_cdc_acm: USB device not ready, drop data

Hi,

I tried the radio_test sample with the sdk 2.3.0 on a custom board. I added this to the prj.conf

CONFIG_USB_CDC_ACM=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_MANUFACTURER="SER Consulting LLC"
CONFIG_USB_DEVICE_PRODUCT="BaseBoard Thermostat"
CONFIG_USB_DEVICE_VID=0x1915
CONFIG_USB_DEVICE_PID=0x520F
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_LINE_CTRL=y

And this to the app.overlay

 / {
	chosen {
		zephyr,shell-uart = &cdc_acm_uart0;
	};
};

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

With this I had a ttyACM0 and all work like I want.

I change for the sdk 2.5.99,

I ceate a new app from the radio_test sample, and I do the same thing I did before, but I did not have the ttyACM0. So I had some stuff like
CONFIG_UART_CONSOLE=n
CONFIG_USE_SEGGER_RTT=y
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_DEFAULT_LEVEL=3

CONFIG_LOG_MODE_DEFERRED=y
CONFIG_LOG_MODE_IMMEDIATE=y

to the prj.conf to see some log.

I saw:

<inf> usb_cdc_acm: USB device not ready, drop data

What I am missing, some thing change between the two SDK ?

How can I get my ttyACM0 ?

Parents
  • I tried with the nrf7002-DK,

    With the sdk 2.3.0 It works I a have the shell through an usb cable on ttyACM2,

    But with the sdk 2.5.99 I do not have a new tty, and the shell is on the ttyACM1, not through my second usb cable .

  • Hi jrt,

    How are you using version 2.5.99? It is the version number for the SDK while being developed towards 2.6.0. There should not be any branches or tags with that version number.

    Regardless, please try using v2.6.1 and see if the problem has improved.

    Hieu

  • I tried with the 2.6.1

    with the shell_module sample I use

    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample"
    CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y
    CONFIG_UART_LINE_CTRL=y
    CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
    

    and it works .

    With the radio_test sample, I did the same but I did not have ttyACM2.(2.6.1 SDK and the nrf7002DK)  the only message I got in the console is: *** Booting nRF Connect SDK 3758bcbfa5cd *** and nothing else.

    As I wrote with the 2.3.0 SDK radio_test sample works.

    Why ?

    What I am missing ?

Reply
  • I tried with the 2.6.1

    with the shell_module sample I use

    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_PRODUCT="Zephyr USB shell sample"
    CONFIG_SHELL_BACKEND_SERIAL_CHECK_DTR=y
    CONFIG_UART_LINE_CTRL=y
    CONFIG_SHELL_BACKEND_SERIAL_INIT_PRIORITY=51
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
    

    and it works .

    With the radio_test sample, I did the same but I did not have ttyACM2.(2.6.1 SDK and the nrf7002DK)  the only message I got in the console is: *** Booting nRF Connect SDK 3758bcbfa5cd *** and nothing else.

    As I wrote with the 2.3.0 SDK radio_test sample works.

    Why ?

    What I am missing ?

Children
Related