CMSIS-DAP: DAP_ExecuteCommands

| CMSIS-DAP Version 1.2.0 (Proposal) Interface Firmware for CoreSight Debug Access Port

- Main Page
- Usage and Description
- Reference

All Functions Groups Pages
DAP_ExecuteCommands
Atomic Commands

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 |
|******|********|+++++++++++++++++++|

- NumCmd: Number of commands to execute
- Commands Requests: Concatenated command requests

DAP_ExecuteCommands Response:

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

- NumCmd: Number of commands executed
- Commands Responses: Concatenated 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 |