USB Composite Testing

Baremetal Drivers and Libraries

Release Date
2023-07-07

Testing procedure

  • Download and run the generated USB 3.0 example ELF on board

  • Debug prints you can see on com port(Teraterm/putty)

Expected Output

Device Log:

USB Composite Device Start... Keyboard Unknown class request 0x9 Keyboard Unknown class request 0x9

USB Composite Device Start... Keyboard Unknown class request 0x9 Keyboard Unknown class request 0x9

  • Connect the board to a standard host(Windows/Linux) machine USB port.

Host Log (Linux):

[13539.237627] usb 1-3.3: new high-speed USB device number 14 using xhci_hcd [13539.254059] usb 1-3.3: config 1 contains an unexpected descriptor of type 0x2, skipping [13539.254085] usb 1-3.3: config 1 interface 2 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 0 [13539.254571] usb 1-3.3: New USB device found, idVendor=03fd, idProduct=0200 [13539.254585] usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [13539.254594] usb 1-3.3: Product: USB 2.0 COMPOSITE DEVICE [13539.254603] usb 1-3.3: Manufacturer: XILINX INC [13539.254612] usb 1-3.3: SerialNumber: 2A49876D9CC1AA4 [13539.256799] usb-storage 1-3.3:1.4: USB Mass Storage device detected [13539.257130] scsi6 : usb-storage 1-3.3:1.4 [13539.259039] input: XILINX INC USB 2.0 COMPOSITE DEVICE as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.3/1-3.3:1.5/input/input12 [13539.259621] hid-generic 0003:03FD:0200.0002: input,hidraw0: USB HID v10.01 Keyboard [XILINX INC USB 2.0 COMPOSITE DEVICE] on usb-0000:00:14.0-3.3/input5 [13539.317317] usbcore: registered new interface driver snd-usb-audio [13540.254219] scsi 6:0:0:0: Direct-Access Xilinx PS USB VirtDisk 1.00 PQ: 0 ANSI: 0 CCS [13540.255509] sd 6:0:0:0: Attached scsi generic sg1 type 0 [13540.255974] sd 6:0:0:0: [sdc] 204800 512-byte logical blocks: (104 MB/100 MiB) [13540.256155] sd 6:0:0:0: [sdc] Write Protect is off [13540.256164] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00 [13540.256321] sd 6:0:0:0: [sdc] No Caching mode page found [13540.256336] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.257404] sd 6:0:0:0: [sdc] No Caching mode page found [13540.257416] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.258264] sdc: unknown partition table [13540.259277] sd 6:0:0:0: [sdc] No Caching mode page found [13540.259290] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.259301] sd 6:0:0:0: [sdc] Attached SCSI removable disk

root@xhdbfarmrkx4:/home/piyushm# mkfs.vfat -I /dev/sdc mkfs.fat 3.0.26 (2014-03-07)

root@xhdbfarmrkx4:/home/piyushm# mount /dev/sdc /mnt/ root@xhdbfarmrkx4:/home/piyushm# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc 100M 0 100M 0% /mnt root@xhdbfarmrkx4:/home/piyushm#

[13539.237627] usb 1-3.3: new high-speed USB device number 14 using xhci_hcd [13539.254059] usb 1-3.3: config 1 contains an unexpected descriptor of type 0x2, skipping [13539.254085] usb 1-3.3: config 1 interface 2 altsetting 0 has 1 endpoint descriptor, different from the interface descriptor's value: 0 [13539.254571] usb 1-3.3: New USB device found, idVendor=03fd, idProduct=0200 [13539.254585] usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [13539.254594] usb 1-3.3: Product: USB 2.0 COMPOSITE DEVICE [13539.254603] usb 1-3.3: Manufacturer: XILINX INC [13539.254612] usb 1-3.3: SerialNumber: 2A49876D9CC1AA4 [13539.256799] usb-storage 1-3.3:1.4: USB Mass Storage device detected [13539.257130] scsi6 : usb-storage 1-3.3:1.4 [13539.259039] input: XILINX INC USB 2.0 COMPOSITE DEVICE as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.3/1-3.3:1.5/input/input12 [13539.259621] hid-generic 0003:03FD:0200.0002: input,hidraw0: USB HID v10.01 Keyboard [XILINX INC USB 2.0 COMPOSITE DEVICE] on usb-0000:00:14.0-3.3/input5 [13539.317317] usbcore: registered new interface driver snd-usb-audio [13540.254219] scsi 6:0:0:0: Direct-Access Xilinx PS USB VirtDisk 1.00 PQ: 0 ANSI: 0 CCS [13540.255509] sd 6:0:0:0: Attached scsi generic sg1 type 0 [13540.255974] sd 6:0:0:0: [sdc] 204800 512-byte logical blocks: (104 MB/100 MiB) [13540.256155] sd 6:0:0:0: [sdc] Write Protect is off [13540.256164] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00 [13540.256321] sd 6:0:0:0: [sdc] No Caching mode page found [13540.256336] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.257404] sd 6:0:0:0: [sdc] No Caching mode page found [13540.257416] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.258264] sdc: unknown partition table [13540.259277] sd 6:0:0:0: [sdc] No Caching mode page found [13540.259290] sd 6:0:0:0: [sdc] Assuming drive cache: write through [13540.259301] sd 6:0:0:0: [sdc] Attached SCSI removable disk

root@xhdbfarmrkx4:/home/piyushm# mkfs.vfat -I /dev/sdc mkfs.fat 3.0.26 (2014-03-07)

root@xhdbfarmrkx4:/home/piyushm# mount /dev/sdc /mnt/ root@xhdbfarmrkx4:/home/piyushm# df -h Filesystem Size Used Avail Use% Mounted on /dev/sdc 100M 0 100M 0% /mnt root@xhdbfarmrkx4:/home/piyushm#