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:
- In the Project Window replace the file that belong to the group USB Driver with the relavant files for the new device.
- Open the file usb_config_USB0.c in the editor and select Configuration Wizard as edit mode; then change the following settings:
- USB Device - High-speed: enable this option only for a high-speed USB peripheral; disable for full-speed USB.
- Update Vendor ID which is provided by the USB Implementers Forum.
- Update Product ID to provide a unique idenification for the Debug Unit.
- Update Device Release Number to indicate the revision of the adaptation.
- Update Manufacturer String to reflect the vendor of the Debug Unit. This setting should match the Vendor ID.
- Update 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.
- 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 Product String must contain "CMSIS-DAP" somewhere in the string. This is used by the debuggers to idenify a CMSIS-DAP complainant Debug Unit that is connected to a host computer.
Adapt the USB Peripheral to the microcontroller