This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

USB CDC ACM

Hi all,

I'm using SDK 15, nrf 52840, win 7,

The USB cdc example works fine for me.

Yet, when I moved the code to my project the driver is not set by win 7.

On device manager I see the device as a "USB composite device".

I used a USB analyzer and found that after few calls the code reaches the function nrf_drv_usbd_setup_stall(); - and I have no idea why.

On the sniffer I see that my code fails when reaching record "Set Configuration (configuration=1) - at this point for some reason the setup in my code reach the stall function.

As I'm not familiar with USB protocol - any help or idea regarding this is most welcome!!!

Regards,

Lior.

Parents
  • Hi,

    In general stalling an endpoint is fine in USB protocol - it just informs host that something is not supported. But the it should not stall the SET_CONFIGURATION 1 request, so I assume something has failed when you moved the code to your project.

    Hard to say now why it happens - I would suggest to turn on logger on DEBUG level and post logs from APP_USBD and APP_USBD_CDC.

    Best regards,
    Kenneth

     

     

     

  • USB_CON_FAIL.csv

    Thank you for your quick response,

    I'm using "Beagle" usb recorder - "data center",

    I am attaching a usb data records in a .csv format. Can that help you point out the issue? 

    I'm able to receive the power events (DETECT/UNDETECT) on my application.

    It looks like for some reason the com port is not opening on the PC

    Another input, the example does not use the "soft device" on it - my application does.

    Please your help,

    Regards,

    Lior.

Reply
  • USB_CON_FAIL.csv

    Thank you for your quick response,

    I'm using "Beagle" usb recorder - "data center",

    I am attaching a usb data records in a .csv format. Can that help you point out the issue? 

    I'm able to receive the power events (DETECT/UNDETECT) on my application.

    It looks like for some reason the com port is not opening on the PC

    Another input, the example does not use the "soft device" on it - my application does.

    Please your help,

    Regards,

    Lior.

Children
Related