Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Refer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications.  These example applications can be imported into the Vitis IDE from the Board Support Package settings tab. 

Links to Examples

Examples Path:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/usbpsu/examples

...

Mass storage profile can be tested by compiling xusbpsu_ch9_storage.c , xusbpsu_ch9_storage.h , xusbpsu_ch9.c , xusbpsu_ch9.h , xusbpsu_class_storage.c , xusbpsu_class_storage.h , xusbpsu_intr_example.c/xusbpsu_poll_example.c 
files together

USB 2.0 Peripheral Mode

The below gives the testing procedure of zynqmp USB standalone example which operates as a mass storage gadget

Testing procedure

  • Download and run the generated USB 2.0 example ELF on board
  • Debug prints you can see on com port(Teraterm/putty)
    the below prints should be seen on com port
  • Connect board to standard host(Windows/Linux)machine USB 2.0 port.

Expected Output

  • You will get a pop-up window on the Window machine for formatting the size 256MB
    After the format complete you can copy a file to the USB device

USB 3.0 Peripheral Mode

The below gives the testing procedure of zynqmp USB standalone example which operates as a mass storage gadget

Testing procedure

  • Download and run the generated USB 3.0 example ELF on board
  • Debug prints you can see on com port(Teraterm/putty)
    the below points should be seen on com port


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

Expected Output

  • You will get a pop-up window on the Window machine for formatting the size 256MB
    After the format complete you can copy a file to the USB device

USB Composite Testing

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

...

The below gives the testing procedure of zynqmp USB DFU example

Testing procedure


On ZCU102 board side

  • Download and run the generated dfu example

...

  • Install DFU utils
  • Launch 'cmd' (make sure your path is that where dfu-util.exe is)
  • dfu-util –l (check our DFU Boot Image downloader)
  • dfu-util –D boot.bin –t 1024
Expected Output

Example Design Architecture

...

USB 2.0:

USB 3.0:

Change Log

2021.2

https://github.com/Xilinx/embeddedsw/blob/xilinx_v2021.2/doc/ChangeLog#L221

2021.1

https://github.com/Xilinx/embeddedsw/blob/xilinx_v2021.1/doc/ChangeLog#L494

2020.2

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2020.2/doc/ChangeLog#L350

2020.1

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2020.1/doc/ChangeLog#L238

2019.2

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2019.2/doc/ChangeLog#L90

2019.1

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2019.1/doc/ChangeLog#L267

2018.3

https://github.com/Xilinx/embeddedsw/blob/release-2018.3/doc/ChangeLog#L307

2018.2

https://github.com/Xilinx/embeddedsw/blob/release-2018.2/doc/ChangeLog#L441

2018.1

https://github.com/Xilinx/embeddedsw/blob/release-2018.1/doc/ChangeLog#L332

2017.3

https://github.com/Xilinx/embeddedsw/blob/release-2017.3/doc/ChangeLog#L881

2017.1

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2017.1/doc/ChangeLog#L406

2016.4

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2016.4/doc/ChangeLog#L1049

2015.4

https://github.com/Xilinx/embeddedsw/blob/xilinx-v2015.4/doc/ChangeLog#L258

...