
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
608 of 808
NXP Semiconductors
UM10360
Chapter 32: LPC17xx Flash memory interface and programming
8.7 Read device serial number
8.8 Compare <address1> <address2> <no of bytes>
8.9 Re-invoke ISP
Table 577. IAP Read device serial number command
Command
Read device serial number
Input
Command code: 58
10
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 LPC17xx devices.
Table 578. IAP Compare command
Command
Compare
Input
Command code: 56
10
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.
Table 579. Re-invoke ISP
Command
Compare
Input
Command code: 57
10