CMSIS-DAP: DAP_SWO_Data

| CMSIS-DAP Version 1.1.0 Interface Firmware for CoreSight Debug Access Port

- Main Page
- Usage and Description
- Reference

All Functions Groups Pages
DAP_SWO_Data
SWO Commands

Read SWO trace data. More...

Read SWO trace data.

## DAP_SWO_Data (0x1C):

Reads the captured SWO trace data from Trace Buffer.

DAP_SWO_Data Request:

BYTE | SHORT |
> 0x1C | Trace Count |
******|*************|

- Trace Count: Maxim number of Trace Data bytes to read

DAP_SWO_Data Response:

BYTE | BYTE | SHORT | BYTE |
< 0x1C | Trace Status | Trace Count | Trace Data |
******|**************|*************|////////////|

- Trace Status:
  - Bit 0: Trace Capture (1 - active, 0 - inactive)
  - Bit 6: Trace Stream Error
  - Bit 7: Trace Buffer Overrun
- Trace Count: Number of Trace Data bytes read
- Trace Data: Trace Data bytes read