Usb3cv

The I2C validation test checks the API interface compliance only. Function Documentation. There’s a free tool called USB3CV from USB-IF. It validates basic USB compliance, and tests all these fine points. It validates basic USB compliance, and tests all these fine points. Lukevalenty 2018-11-28 03:00:36 UTC #17.

USB drivers need to be tested against the requirements of the USB standard. The following tools are provided by the USB Implementers Forum:

  • USB Command Verifier (USB20CV Tools) for USB 2.0 controllers
  • USB Command Verifier (USB3CV Tools) for USB 3 controllers

Usb 3 Cv Download

Before using the command verifier tools, make sure that you have an application running with the USB device class that you are going to test. For example, if you want to test the behavior of the USB MSC device class, create a µVision project containing this class. For more information, refer to the MDK Middleware documentation.

Then, follow these steps to run the verification tools on a Windows PC:

Usb2cv
  • Install the appropriate USB Command Verifier tool and reboot your PC.
  • Connect your device to the PC.
  • Open the Windows Device Manager and select View - Devices by connection to view the USB host controllers available on the PC:

  • Expand the entry and verify the controller properties to which your device is connected. Remember the location of the controller that will be tested:

  • Run the USB Command Verifier tool and select the controller according to the location found in the previous step:

    Note
    Do not test the controller that is connected to the keyboard or mouse. All devices connected to the tested controller will stop working.
  • When selecting the Compliance Test mode all test cases will run. In the Debug mode, you can choose individual test cases by selecting the related check boxes. Test reports are saved automatically in the Reports directory.

The following tests should be executed for:

Usb Command Verifier Tool

  • USB Mass Storage Class: Chapter 9 Tests + MSC Tests
  • USB HID class: Chapter 9 Tests + HID Tests
  • Any other class (CDC, ADC, etc.): only Chapter 9 Tests

Chapter 9 Tests refers to the USB Device Framework chapter of the USB specification. Every USB peripheral is required conform to this test which must be passed. Passed tests offer a good level of confidence that there are no major flows in the USB device drivers.

The USB Command Verifier does not test how well a device behaves under stress. To get a better confidence, conduct stress tests of all available examples:

  • USB MSC: Send a long file to the mass storage device and read it back and compare the output.
  • USB HID: Use the HID Client (available in the MDK installation directory below ARMUtilitiesHID_ClientRelease) to see how the device works under stress.
  • USB CDC (Virtual COM): Send a large file on the Virtual COM port and capture it on the UART and vice versa. Compare sent and received files for both directions.
  • USB ADC: Play a sound file form the board for some time and listen for any sound distortion. Record sounds coming from a microphone and verify the recorded file on the USB Host.

Usb3cv

After the completion of the tests, click Exit to switch back the USB stack. Otherwise, the USB stack will stay in test mode.