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

Issues with writing my own project that communicates with a computer over USB.

Hi,

I've been trying to combine the spi_slave and USB_CDC_ADM examples so that I can pipe data from a spi_master all the way to my host machine. In my cobbled together project, the SPI transactions are working, but the USB isn't being properly sensed by my machine. I keep seeing this in my device manager:

The USB_CDC_ADM example works just fine though.

Any ideas on what I'm messing up? Thank you!

Parents
  • Hi Rye, 

    Could you check what's the issue with the nRF52 USB Product (right click and click properties)
    I would suggest to comment out the SPI functionality part by part until you see the USB work again, this way we can track down what caused the issue. 


  • I think it has to do with something in my sdk_config.h. I've removed most of the SPI code now. Aside from defining the SPI handler and enabling the SPI in the SDK_config, the SPI isn't doing anything (i.e. no SPI code in my main). I have the same issue.

    I took a look at the properties tab and there are two events. I've copied both below:

    The first one (Driver name is 'null' which seems like a problem. The drivers should be installed!):

    Device USB\VID_1915&PID_520C\000000000000 was configured.
    
    Driver Name: null
    Class Guid: {00000000-0000-0000-0000-000000000000}
    Driver Date: 
    Driver Version: 
    Driver Provider: 
    Driver Section: 
    Driver Rank: 0x0
    Matching Device Id: 
    Outranked Drivers: 
    Device Updated: false
    Parent Device: USB\VID_045E&PID_0944\6&15ba3093&0&1
    

    The second one:

    Device USB\VID_1915&PID_520C\000000000000 was not migrated due to partial or ambiguous match.
    
    Last Device Instance Id: USB\VID_0403&PID_6010\003017A40B1B
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Location Path: PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(1)#USB(1)#USB(2)
    Migration Rank: 0xF000FFFFFFFF0123
    Present: false
    Status: 0xC0000719
    

    So it seems maybe I'm messing up some USB params in my sdk_config.h? I'll take a more extensive look through it right now.

Reply
  • I think it has to do with something in my sdk_config.h. I've removed most of the SPI code now. Aside from defining the SPI handler and enabling the SPI in the SDK_config, the SPI isn't doing anything (i.e. no SPI code in my main). I have the same issue.

    I took a look at the properties tab and there are two events. I've copied both below:

    The first one (Driver name is 'null' which seems like a problem. The drivers should be installed!):

    Device USB\VID_1915&PID_520C\000000000000 was configured.
    
    Driver Name: null
    Class Guid: {00000000-0000-0000-0000-000000000000}
    Driver Date: 
    Driver Version: 
    Driver Provider: 
    Driver Section: 
    Driver Rank: 0x0
    Matching Device Id: 
    Outranked Drivers: 
    Device Updated: false
    Parent Device: USB\VID_045E&PID_0944\6&15ba3093&0&1
    

    The second one:

    Device USB\VID_1915&PID_520C\000000000000 was not migrated due to partial or ambiguous match.
    
    Last Device Instance Id: USB\VID_0403&PID_6010\003017A40B1B
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Location Path: PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(1)#USB(1)#USB(2)
    Migration Rank: 0xF000FFFFFFFF0123
    Present: false
    Status: 0xC0000719
    

    So it seems maybe I'm messing up some USB params in my sdk_config.h? I'll take a more extensive look through it right now.

Children
No Data
Related