9.1.4 TPI Erase

Perform an erase.

Table 9-7. TPI Erase Command Format
FieldSizeDescription
TPI_CMD_ERASE1 byteCommand ID
Erase Mode1 byte

TPI_ERASE_CHIP or

TPI_ERASE_APP or

TPI_ERASE_CONFIG

Address4 bytesAddress or area to erase
Table 9-8. TPI Erase Modes
ModeDescription
TPI_CMD_ERASE_CHIPErases the whole chip and clears lockbits
TPI_ERASE_APPErases the application section
TPI_ERASE_CONFIGClear the configuration bits

Address is ignored for TPI_ERASE_CHIP. For other erase modes the address must be provided.

Response:

Table 9-9. TPI Erase Response
FieldSizeDescription
TPI_CMD_ERASE1 byteCommand ID
Status1 byte

TPI_RSP_ERR_FAILED or

TPI_RSP_ERR_COLLISION or

TPI_RSP_ERR_TIMEOUT or

TPI_RSP_ERR_OK