UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
1191 of 1269
NXP Semiconductors
UM10503
Chapter 46: LPC43xx flash programming/ISP and IAP
46.8.8 Read device serial number
46.8.9 Compare <address1> <address2> <no of bytes>
Result
Result0:
2 bytes of boot code version number. It is to be interpreted as
<byte1(Major)>.<byte0(Minor)>
Description
This command is used to read the boot code version number.
Stack usage
8 B
Table 1049.IAP Read Boot Code version number command
Command
Read boot code version number
Table 1050.IAP Read device serial number command
Command
Read device serial number
Input
Command code: 58 (decimal)
Parameters:
None
Return Code
CMD_SUCCESS |
Result
Result0:
First 32-bit word of Device Identification Number (at the lowest address)
Result1:
Second 32-bit word of Device Identification Number
Result2:
Third 32-bit word of Device Identification Number
Result3:
Fourth 32-bit word of Device Identification Number
Description
This command is used to read the device identification number. The serial number
may be used to uniquely identify a single unit among all LPC43xx devices.
Stack usage
8 B
Table 1051.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.
Return 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 64 bytes starting from address zero. The first 64 bytes can be
re-mapped to RAM.
Stack usage
152 B