Communication error "can't set config #1, error -32" (USB) when plugging in nrf52840 dongle (PCA10059) into nvidia xavier

Hi,

as stated in the title, we have a nrf52840 dongle (PCA10059) which does not come up normally on a Nvidia xavier devboard. Output of dmesg:

We tried different OS and SW (bootloader/softdevice/application) versions all with the same outcome.

After a lot of testing and tracing we found out, that when we pull out the usb-dongle ot of the usb-socket just that far that the power-pins are still connected and only the connection-pins are disconnected and then plug it back, the device will be detected just fine. Also when using a external usb-hub it will come up normally.

So it seems the problem comes from a timing issue between the xavier-usb (tegra-xusb) driver and the dongle. Probably the dongle delivers the usb-config too slow so that the kernel has no config to select the further loading of cdc_acm.

Is there anything we can do in the bootloader/softdevice/app to somehow fix this problem, so that no external usb-hub is needed?

Parents
  • Hi 

    This is not an known issue, but we haven't done any testing on this platform either. I assume you don't have this issue on a regular PC platform?

    Do you have any means to sniff the USB communication between the dongle and the Nvidia host, so you can see what is going on?

    Best regards
    Torbjørn

  • Hi Torbjørn,

    we've send you a PM regarding USB sniffing.

    We also posted this problem on the nvidia forums, where they asked if the device (the dongle) has a USB compliance test, see https://developer.nvidia.com/embedded/dlc/agx-xavier-3-1-compliance-test-guide

    Has it?

  • Hi

    As I mentioned in the message it should be possible to drag drop attachments into your reply. 

    In the mean time I will check what USB compliance testing we have done for the dongle. 

    Best regards
    Torbjørn

Reply
  • Hi

    As I mentioned in the message it should be possible to drag drop attachments into your reply. 

    In the mean time I will check what USB compliance testing we have done for the dongle. 

    Best regards
    Torbjørn

Children