CMSIS-DAP: Configure USB Peripheral

| CMSIS-DAP Version 1.1.0 Interface Firmware for CoreSight Debug Access Port

- Main Page
- Usage and Description
- Reference

All Functions Groups Pages
Configure USB Peripheral
Firmware Configuration

CMSIS-DAP Firmware uses USB HID as interface to host computer. More...

CMSIS-DAP Firmware uses USB HID as interface to host computer.

The CMSIS-DAP Firmware uses MDK Professional middleware components to access the USB peripheral of the microcontroller. The CMSIS-DAP Firmware uses the USB Human Interface Device (HID) class that does not require any USB driver development for the host computer. However it is important to provide correct configuration information for the USB Peripheral as described in this section.

The following steps describe how to change and configure the USB peripheral in the CMSIS-DAP Firmware project:

1. In the Project Window, the group USB contains USB interface with the relevant configuration files.
2. Open the file usb_config_0.c in the editor and select Configuration Wizard as edit mode; then change the following settings:
   - USB Device 0 - High-speed: enable this option only for a high-speed USB peripheral; disable for full-speed USB.
   - Update Device Settings - Vendor ID which is provided by the USB Implementers Forum.
   - Update Device Settings - Product ID to provide a unique identification for the Debug Unit.
   - Update Device Settings - Device Release Number to indicate the revision of the adaptation.
   - Update String Settings - Manufacturer String to reflect the vendor of the Debug Unit. This setting should match the Vendor ID.
   - Update String Settings - Product String to indicate the Debug Unit. Note that "CMSIS-DAP" must be part of that string to allow identification by debuggers.
   - Optionally each Debug Unit may provide a unique Serial Number String. If the String Settings - Serial Number String is not provided, only one Debug Unit can be connected at the same time to a host computer since it is impossible to identify multiple Debug Units.

The CMSIS-DAP Firmware can be also part of a USB composite device. If this case, the HID Interface String must contain the sub-string CMSIS-DAP. The HID Interface String is configured in the file USBD_Config_HID_0.h under the category Human Interface Device Class Settings.

Note
  - The USB Device setting high-speed / full-speed USB must be reflected in the DAP_config.h file as described under Firmware Configuration.
  - The String Settings - Product String must contain "CMSIS-DAP" somewhere in the string. This is used by the debuggers to identify a CMSIS-DAP compliant Debug Unit that is connected to a host computer.

Adapt the USB Peripheral to the microcontroller