Get Information about CMSIS-DAP Debug Unit.
The DAP_Info Command provides configuration information about the Debug Unit itself and the capablities.
DAP_Info Command:
BYTE | BYTE |
> 0x00 | ID |
******|******|
- ID: Request Identifier to obtain information in the Response:
- 0x01 = Get the Vendor ID (string).
- 0x02 = Get the Product ID (string).
- 0x03 = Get the Serial Number (string).
- 0x04 = Get the CMSIS-DAP Firmware Version (string).
- 0xF0 = Get information about the Capabilities (BYTE) of the Debug Unit.
- 0xFE = Get the maxium Packet Count (BYTE).
- 0xFF = Get the maximum Packet Size (SHORT).
DAP_Info Response:
BYTE | BYTE | BYTE |
< 0x00 | Len | Info |
******|******|++++++|
- Len: Info length in bytes.
- Info:
- a string encoded in US ASCII characters whereby Len is the string size. (empty strings have Len = 0).
- a BYTE value (indicated with Len = 1)
- a SHORT value (indicated with Len = 2).
The ID Capabilities obtains information about the available interface to the Device. The information BYTE contains bits that indicate which communcation methods are provided to the Device.
- Bit 0: 1 = SWD Serial Wire Debug communication implemented.
- Bit 1: 1 = JTAG communicaton implemented.
- Note:
- Vendor ID, Product ID, and Serial Number may be an empty string (with Len = 0). In this case the USB Device Information is used to obtain Vendor, Product, and Serial Number.