# Atmel EDBG-based Tools Protocols
TPI protocol commands

### TPI Read Memory

Reads data from memory using TPI programming

Table 172. TPI Read Memory command format

Field | Size | Description
--- | --- | ---
TPI_CMD_READ_MEM | 1 byte | Command ID
Memory Type | 1 byte | TPI_MEM_TYPE_APPL or TPI_MEM_TYPE_FUSE or TPI_MEM_TYPE_LOCKBITS
Address | 4 bytes | Address to start reading from
Length | 2 bytes | Number of bytes to read (1 to 256)

Response:

Table 173. TPI Read Memory response

Field | Size | Description
--- | --- | ---
TPI_CMD_READ_MEM | 1 byte | Command ID
Status | 1 byte | TPI_RSP_ERR_FAILED or TPI_RSP_ERR_COLLISION or TPI_RSP_ERR_OK
Data | 1 byte | Data read from memory

Prev | Up | Next
| Home |