USB Device Debug

Follow the procedure below to debug USB device mode.
  1. Replace the current PC USB port with other USB port, to ensure the USB port itself is not a faulty device.
  2. Replace the current USB cable with other USB cables, to ensure the USB cable itself is not faulty.
  3. Try the same connection on other PC.
  4. If your device has multiple USB devices ports, try out on other ports.
  5. Confirm if the host driver is loaded successfully.
    Use the following command to verify.
    cat /sys/devices/platform/soc/10210000.usbdrd/of_node/dr_mode
    peripheral
    
    Note: If the folder 10210000.usbdrd does not exist, it means that the host driver is not installed.
  6. Make sure you already have the latest code or patch.
  7. Under the same condition, compare the registers of the failed board against the ones which are working properly.