SPI Read Flash

Reads data from flash memory using SPI programming.

Table 1. 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 2. SPI Read Flash Response
Field Size Description
SPI_CMD_READ_FLASH 1 byte Command ID
Status1 1 byte SPI_STATUS_CMD_OK
Data n bytes Data read from flash
Status 1 byte

SPI_STATUS_CMD_OK or

SPI_STATUS_RDY_BSY_TOUT