UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
160 of 258
NXP Semiconductors
UM10429
Chapter 17: LPC1102 Flash memory programming firmware
17.5.12 Read Boot code version number (UART ISP)
17.5.13 Compare <address1> <address2> <no of bytes> (UART ISP)
17.5.14 ReadUID (UART ISP)
Table 164. UART ISP Read Boot Code version number command
Command
K
Input
None
Return Code
CMD_SUCCESS followed by 2 bytes of boot code version number in ASCII format.
It is to be interpreted as <byte1(Major)>.<byte0(Minor)>.
Description
This command is used to read the boot code version number.
Table 165. UART ISP Compare command
Command
M
Input
Address1 (DST):
Starting flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Address2 (SRC):
Starting flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Number of Bytes:
Number of bytes to be compared; should be a multiple of 4.
Return Code
CMD_SUCCESS | (Source and destination data are equal)
COMPARE_ERROR | (Followed by the offset of first mismatch)
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED |
PARAM_ERROR
Description
This command is used to compare the memory contents at two locations.
Compare result may not be correct when source or destination address
contains any of the first 512 bytes starting from address zero. First 512 bytes
are re-mapped to boot ROM
Example
"M 8192 268468224 4<CR><LF>" compares 4 bytes from the RAM address
0x1000 8000 to the 4 bytes from the flash address 0x2000.
Table 166. UART ISP ReadUID command
Command
N
Input
None
Return Code
CMD_SUCCESS followed by four 32-bit words of E-sort test information in ASCII
format. The word sent at the lowest address is sent first.
Description
This command is used to read the unique ID.