
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
340 of 368
NXP Semiconductors
UM10375
Chapter 21: LPC13xx Flash memory programming firmware
21.14.6 Read Boot code version number
21.14.7 Compare <address1> <address2> <no of bytes>
21.14.8 Reinvoke ISP
Table 340. IAP Read Boot Code version number command
Command
Read boot code version number
Input
Command code: 55 (decimal)
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 341. IAP Compare command
Command
Compare
Input
Command code: 56 (decimal)
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 342. Reinvoke ISP
Command
Compare
Input
Command code: 57 (decimal)
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 the PIO0_1 pin is not accessible to force the ISP mode.