From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- docs/DAP/html/group__DAP__Commands__gr.html | 211 ++++++++++++++++++++++++++++ 1 file changed, 211 insertions(+) create mode 100644 docs/DAP/html/group__DAP__Commands__gr.html (limited to 'docs/DAP/html/group__DAP__Commands__gr.html') diff --git a/docs/DAP/html/group__DAP__Commands__gr.html b/docs/DAP/html/group__DAP__Commands__gr.html new file mode 100644 index 0000000..8426e86 --- /dev/null +++ b/docs/DAP/html/group__DAP__Commands__gr.html @@ -0,0 +1,211 @@ + + + + + +CMSIS-DAP Commands +CMSIS-DAP: CMSIS-DAP Commands + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-DAP +  Version 2.0.0 +
+
Interface Firmware for CoreSight Debug Access Port
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
CMSIS-DAP Commands
+
+
+ +

Commands between Debug Unit and host computer. +More...

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Content

 General Commands
 Information and Control commands for the CMSIS-DAP Debug Unit.
 
 Common SWD/JTAG Commands
 Set SWD/JTAG clock and control/monitor SWD/JTAG I/O pins.
 
 SWD Commands
 Configure the parameters for SWD mode.
 
 SWO Commands
 Configure the parameters for SWO mode.
 
 JTAG Commands
 Detect and configure the JTAG device chain.
 
 Transfer Commands
 Read and Writes to CoreSight registers.
 
 Atomic Commands
 Execute atomic commands.
 
 Response Status
 Status Information in Response Data.
 
+

Description

+

Commands between Debug Unit and host computer.

+

This section explains each command that is exchanged between the Debug Unit and the host computer. Every Command starts with a Command-ID and optional data. Depending on the Command, the CMSIS-DAP firmware replies with a Response that repeats the Command-ID and delivers additional data.

+

Command and Response data have a package size limitation that is defined with DAP_PACKET_SIZE. This configuration setting can be obtained with the command DAP_Info and is used to optimize the performance for Full-Speed or High-Speed USB. The debugger must ensure that each data package fits within the limitations of the configured DAP_PACKET_SIZE.

+
Note
Commands that are not implemented reply with 0xFF instead of repeating the command byte.
+

Conventions and Command Structure

+

The following conventions describe the command semantic used in the following documentation:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Symbol Description
> Prefix indicating the direction: Command from host to Debug Unit.
< Prefix indicating the direction: Response from Debug Unit to host.
BYTE 8-bit value.
SHORT 16-bit value (low byte first).
WORD 32-bit value (low byte first).
LWORD 64-bit value (low byte first).
FLOAT 32-bit single precision floating point value (LSB first).
0x01 Fixed HEX value in C notation. Used for example to identify a command.
Reserved The field above is reserved for future extension.
**** The field above has exactly one occurrence.
++++ The field above has a variable length.
////// The field above is repeated and may appear 0..n times.
+

The commands are described in a structure consisting of three lines.

+
    +
  • The first line indicates the field type.
  • +
  • The second line indicates the communication direction and the command structure.
  • +
  • The third line indicates the occurrence of the field.
  • +
+

Examples:

+
| BYTE | SHORT *| WORD ***|
+
> 0x99 | RecLen | Data |
+
|******|********|+++++++++|
+

The Command with the Command-ID 0x99 is sent from the host computer to the Debug Unit. The value of RecLen indicates the number of WORDS that follow with Data. Data is repeated several times depending on the value of RecLen.

+

Depending on the Command the Debug Unit may send a Response.

+
| BYTE ***| WORD***********|
+
< 0 | Register Value |
+
|*Reserved|****************|
+
+
+ + + + -- cgit