SPI Read Flash - - Atmel EDBG-based Tools Protocols

# Atmel EDBG-based Tools Protocols
SPI programming protocol commands

Sidebar | Prev | Up | Next

### SPI Read Flash

Reads data from flash memory using SPI programming

Table 154. SPI Read Flash command format

Field | Size | Description
--- | --- | ---
SPI_CMD_READ_FLASH | 1 byte | Command ID
NumBytes | 2 byte | Total number of bytes to read, MSB first
cmd1 | 1 byte | Read Program Memory command byte #1. Low/high byte selection bit (bit 3) is handled by firmware.

Response:

Table 155. SPI Read Flash response

Field | Size | Description
--- | --- | ---
SPI_CMD_READ_FLASH | 1 byte | Command ID
Status1 | 1 byte | SPI_STATUS_CMD_OK
Data | 1 byte | Data read from flash
Status | 1 byte | SPI_STATUS_CMD_OK or SPI_STATUS_RDY_BSY_TOUT

Prev | Up | Next
| Home |