# Atmel EDBG-based Tools Protocols
Serial trace commands

### Set capture mode

Sets the capture mode for sampling data sent from the target. Currently only UART is supported.

Table 13. Set capture mode

Field | Size | Description
--- | --- | ---
SERIAL_TRACE | 1 byte | 0x87
SET_CAPTURE_MODE | 1 byte | 0x01
Mode | 1 byte | Capture mode for incoming data 0x00: OFF (default) 0x02: UART

Response:

Table 14. Set capture mode response

Field | Size | Description
--- | --- | ---
SERIAL_TRACE | 1 byte | 0x87
SET_CAPTURE_MODE | 1 byte | 0x01
Status | 1 byte | Status code 0x00: OK 0xFF: Error

Prev | Up | Next
| Home |