CMSIS-DAP  Version 1.1.0
Interface Firmware for CoreSight Debug Access Port
 All Functions Groups Pages
DAP_ExecuteCommands

Execute multiple DAP commands from a single packet. More...

Execute multiple DAP commands from a single packet.

Executes multiple DAP commands that are provided in a single packet. Packet size limitation for requests and responses needs to respected.

DAP_ExecuteCommands Request:

BYTE | BYTE | |
> 0x7F | NumCmd | Command Requests |
******|********|+++++++++++++++++++|

DAP_ExecuteCommands Response:

BYTE | BYTE | |
< 0x7F | NumCmd | Command Responses |
******|********|+++++++++++++++++++|

Example:

Execute two DAP_SWJ_Pins commands with DAP_Delay in between.

Request:

BYTE | BYTE | BYTE | BYTE | BYTE | WORD | BYTE | SHORT | BYTE | BYTE | BYTE | WORD |
> 0x7F | 0x03 | 0x10 | Pin Output | Pin Select | Pin Wait | 0x09 | Delay | 0x10 | Pin Output | Pin Select | Pin Wait |
******|******|******|************|************|**********|******|*******|******|************|************|**********|
|NumCmd| DAP_SWJ_Pins | DAP_Delay | DAP_SWJ_Pins |

Response:

BYTE | BYTE | BYTE | BYTE | BYTE | BYTE | BYTE | BYTE |
< 0x7F | 0x03 | 0x10 | Pin Input | 0x09 | Status | 0x10 | Pin Input |
******|******|******|***********|******|********|******|***********|
|NumCmd| DAP_SWJ_Pins | DAP_Delay | DAP_SWJ_Pins |