Get Information about CMSIS-DAP Debug Unit.
More...
Get Information about CMSIS-DAP Debug Unit.
The DAP_Info Command provides configuration information about the Debug Unit itself and the capabilities.
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).
- 0x05 = Get the Target Device Vendor (string).
- 0x06 = Get the Target Device Name (string).
- 0xF0 = Get information about the Capabilities (BYTE) of the Debug Unit.
- 0xFD = Get the SWO Trace Buffer Size (WORD).
- 0xFE = Get the maximum 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. Len is the string length including the \x00 terminator. Len = 0 indicates no information.
- a BYTE value (indicated with Len = 1).
- a SHORT value (indicated with Len = 2).
- a WORD value (indicated with Len = 4).
The ID Capabilities obtains information about the available interface to the Device. The information BYTE contains bits that indicate which communication methods are provided to the Device.
- Bit 0: 1 = SWD Serial Wire Debug communication is implemented (0 = not implemented).
- Bit 1: 1 = JTAG communication is implemented (0 = not implemented).
- Bit 2: 1 = SWO UART - UART Serial Wire Output is implemented (0 = not implemented).
- Bit 3: 1 = SWO Manchester - Manchester Serial Wire Output is implemented (0 = not implemented).
- Note
- The ID for Vendor ID, Product ID, and Serial Number may return no string (indicated by Len = 0). In this case the USB Device Information is used to obtain Vendor, Product, and Serial Number.
-
Target Device Vendor and Target Device Name are only available on Debug Units with known Target Device. Refer to TARGET_DEVICE_FIXED for more information. If the Target Device is not known no string is returned (indicated by Len = 0).