UM10375 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
User manual Rev. 3 — 14 June 2011 334 of 368
NXP Semiconductors
UM10375
Chapter 21: LPC13xx Flash memory programming firmware
21.13.12 Read Boot code version number
21.13.13 Compare <address1> <address2> <no of bytes>
Table 329. LPC13xx device identification numbers
Device ASCII coding Hex coding
LPC1311FHN33 742543403 0x2C42 502B
LPC1313FHN33 742395947 0x2C40 102B
LPC1313FBD48 742395947 0x2C40 102B
LPC1342FHN33 1023492139 0x3D01 402B
LPC1342FBD48 1023492139 0x3D01 402B
LPC1343FHN33 1023410219 0x3D00 002B
LPC1343FBD48 1023410219 0x3D00 002B
LPC1311FHN33/01 404131883 0x1816 902B
LPC1313FHN33/01 405803051 0x1830 102B
LPC1313FBD48/01 405803051 0x1830 102B
Table 330. 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 331. 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.