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

     

     

     

Reply
  • 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

     

     

     

Children
Related