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
53 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.8.10 SH_CMD_PAGE_WRITE (0xAA) command
The page write command is used to write a page in flash. A page size is 64 bytes.
5.8.11 SH_CMD_PAGE_READ (0xAB) command
The page read command is used to read a page in flash. A page size is 64 bytes.
Table 74.
Response packet (error)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xA9
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 parameters
Table 75.
Command packet
Field
Offset
Size (bytes) Value
Description
command
0x0
0x1
0xAA
‘Page write’ command identifier
crcCheck
0x1
0x1
0 – Do CRC check for this packet.
1 - Ignore CRC field for this packet.
pageNum
0x2
0x2
Flash page number in which the appended data to be programmed.
For example to program flash page at 0x8000, this parameter should
be set to 512.
data
0x4
Page_size
Data to be programmed in flash.
checkSum
Pa4 0x4
CRC32 CRC32 of the packet excluding this field. Set this field to 0 if
crcCheck is set to 1.
Table 76.
Response packet (success)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xAA
Processed command identifier
length
0x2
0x2
0x00
On success this field is set to 0
Table 77.
Response packet (error)
Field
Offset Size (bytes) Value
Description
sop
0x0
0x1
0x55
Start of packet identifier
command
0x1
0x1
0xAA
Processed command identifier
length
0x2
0x2
0x4
On error this field is set to 4
errorCode
0x4
0x4
Error code
Error code specified in error.h parameters
Table 78.
Command packet
Field
Offset Size (bytes) Value
Description
command
0x0
0x1
0xAB
‘Page read’ command identifier
crcCheck
0x1
0x1
0 – Do CRC check for this packet.
1 - Ignore CRC field for this packet.
pageNum
0x2
0x2
Flash page number from which the data to be read.