UM11029
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
58 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.8.18 SH_CMD_FAIM_WRITE (0xBF) command
This command is used to write one page to the FAIM memory. One page of FAIM is 4
bytes.
5.8.19 I
2
C/SPI ISP Error codes
See
Table 36 “ISP/IAP Error codes”
5.8.20 I
2
C/SPI ISP mode protocol software support
This section includes predefined command definitions and software structures used for
communication for the I2C/SPI ISP protocol. These may be used with a host application
that talks to the I2C/SPI ISP interface via the supported I2C or SPI slave interfaces.
/* I2C/SPI IMSP mode protocol commands */
#define SH_CMD_GET_VERSION 0xA1
#define SH_CMD_RESET
0xA2
#define SH_CMD_BOOT
0xA3
Table 97.
Response packet (error)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xBE
Processed command identifier
length
0x2
0x2
0x4
Length of the response packet. 0x4 = failure
errorCode
0x4
0x4
Error code
Error code specified in error.h
Table 98.
Command packet
Field
Offset Size (bytes) Value
Description
command
0x0
0x1
0xBF
‘FAIM write’ command identifier
crcCheck
0x1
0x1
00 – Do CRC check for this packet
01 – Ignore CRC field for this packet
PageNum
0x2
0x2
Page number to program data
data
0x4
0x4
Data to be programmed in FAIM
checksum
0x8
0x4
CRC32
CRC32 of the packet excluding this field. Set this field to 0 if crcCheck
is set to 1.
Table 99.
Response packet (success)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xBF
Processed command identifier
length
0x2
0x2
0x00
On success this field is set to 0
Table 100. Response packet (error)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xBF
Processed command identifier
length
0x2
0x2
0x4
Length of the response packet. 0x4 = failure
errorCode
0x4
0x4
Error code
Error code specified in error.h