
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
385 of 487
NXP Semiconductors
UM10800
Chapter 25: LPC82x Flash In-System and In-Application Programming
25.6.2.6 Read Boot code version number (IAP)
25.6.2.7 Compare <address1> <address2> <no of bytes> (IAP)
Table 336. IAP Read Boot Code version number command
Command
Read boot code version number
Input
Command code: 55
(decimal)
Parameters:
None
Status code
CMD_SUCCESS
Result
Result0:
2 bytes of boot code version number. Read as
<byte1(Major)>.<byte0(Minor)>
Description
This command is used to read the boot code version number.
Table 337. IAP Compare command
Command
Compare
Input
Command code: 56
(decimal)
Param0(DST):
Starting flash or RAM address of data bytes to be compared. This
address should be a word boundary.
Param1(SRC):
Starting flash or RAM address of data bytes to be compared. This
address should be a word boundary.
Param2:
Number of bytes to be compared; should be a multiple of 4.
Status code
CMD_SUCCESS |
COMPARE_ERROR |
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED
Result
Result0:
Offset of the first mismatch if the Status Code is COMPARE_ERROR.
Description
This command is used to compare the memory contents at two locations.