Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 443 of 547
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
26.7.6 Read Boot code version number (IAP)
26.7.7 Compare <address1> <address2> <no of bytes> (IAP)
Table 401. 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 402. 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.
The result may not be correct when the source or destination includes any
of the first 512 bytes starting from address zero. The first 512 bytes can be
re-mapped to RAM.