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
166 of 258
NXP Semiconductors
UM10429
Chapter 17: LPC1102 Flash memory programming firmware
17.6.6 Read Boot code version number (IAP)
17.6.7 Compare <address1> <address2> <no of bytes> (IAP)
17.6.8 Reinvoke ISP (IAP)
Table 174. IAP Read Boot Code version number command
Command
Read boot code version number
Input
Command code: 5510
Parameters:
None
Return Code
CMD_SUCCESS |
Result
Result0:
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 175. IAP Compare command
Command
Compare
Input
Command code: 5610
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 512 bytes starting from address zero. The first 512 bytes can be
re-mapped to RAM.
Table 176. IAP Reinvoke ISP
Command
Compare
Input
Command code: 5710
Return Code
None
Result
None.
Description
This command is used to invoke the bootloader in ISP mode. It maps boot
vectors, sets PCLK = CCLK, configures UART pins RXD and TXD, resets
counter/timer CT32B1 and resets the U0FDR (see
). This command may
be used when a valid user program is present in the internal flash memory and no
pin is available to force the ISP mode.