CMSIS-DAP  Version 2.0.0
Interface Firmware for CoreSight Debug Access Port
 All Functions Groups Pages
DAP_SWD_Sequence

Generate SWD sequence and output on SWDIO or capture input from SWDIO data. More...

Generate SWD sequence and output on SWDIO or capture input from SWDIO data.

Note
The DAP_SWD_Sequence is available for CMSIS-DAP version 1.2 and higher. Refer to DAP_Info for more information on how to query the CMSIS-DAP version.

The DAP_SWD_Sequence Command is used to generate special sequences in SWD mode on the pins SWCLK and SWDIO. For example, for SWD multi-drop target selection (see picture) it is required to put the SWDIO pin to input mode (where it is not driven).

SWD_Sequence.png
SWD sequence for multi-drop target selection

DAP_SWD_Sequence Command:

| BYTE | BYTE **********| BYTE *********| BYTE ******|
> 0x1D | Sequence Count | Sequence Info | SWDIO Data |
|******|****************|///////////////|++++++++++++|

DAP_SWD_Sequence Response:

| BYTE | BYTE **| BYTE ******|
< 0x1D | Status | SWDIO Data |
|******|********|++++++++++++|