# Atmel EDBG-based Tools Protocols
Serial trace commands

### Get data

Retrieves captured data along with status information. Note that up to 508 bytes can be retrieved at a time.

Table 21. Get data

Field | Size | Description
--- | --- | ---
SERIAL_TRACE | 1 byte | 0x87
GET_DATA | 1 byte | 0x08

Response:

Table 22. Get data response

Field | Size | Description
--- | --- | ---
SERIAL_TRACE | 1 byte | 0x87
GET_DATA | 1 byte | 0x08
STATUS | 2 bytes, MSB first | Status encoding Bit 15: overrun error (buffer not read fast enough) Bit 14: receive error (framing or baud rate error) Bit 9: receive disabled (receiver has been disabled) Bits 8..0: number of data bytes received
DATA | N bytes | Data streamed from the target device

Prev | Up | Next
| Home |