12 read boot code version number, 13 compare Page 689: Table 30–618, Table 30–616, Lpc24xx part identification numbers, Nxp semiconductors
Page 689: Table 30–618, Table 30–616, Lpc24xx part identification numbers, Nxp semiconductors
![background image](/manuals/190592/689/background.png)
UM10237_4
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 04 — 26 August 2009
689 of 792
NXP Semiconductors
UM10237
Chapter 30: LPC24XX Flash memory programming firmware
In addition to the part identification numbers, the user can determine the device revision
by reading the register contents at address 0x0007 E070. The register value is encoded
as follows: 0x0 corresponds to revision ‘—’, 0x01 corresponds to revision A, 0x02
corresponds to revision B,..., 0x1A corresponds to revision Z. On all LPC24XX parts, this
feature is implemented starting with device revision C, so the register read will yield a
value of 0x03 (for revision C) or larger.
9.12 Read Boot code version number
9.13 Compare
Table 616. LPC24xx part Identification numbers
Device
ASCII/dec coding
Hex coding
LPC2458
352386869
0x1500 FF35
LPC2468
369164085
0x1600 FF35
LPC2478
386006837
0x1701 FF35
Table 617. 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
Description
This command is used to read the boot code version number.
Table 618. 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 64 bytes starting from address zero. First 64 bytes
are re-mapped to Flash boot sector
Example
"M 8192 1073741824 4
0x4000 0000 to the 4 bytes from the Flash address 0x2000.