UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
437 of 464
NXP Semiconductors
UM10850
Chapter 31: LPC5410x Flash API
31.6.6 Read Boot code version number
31.6.7 Compare <address1> <address2> <no of bytes>
31.6.8 Reinvoke ISP
Table 502. IAP Read Boot Code version number command
Command
Read boot code version number
Input
Command code: 55 (decimal)
Parameters:
None
Status code
CMD_SUCCESS
Result
Result0:
2 bytes of boot code version number. Read as <byte1(Major)>.<byte0(Minor)>
Description
This command is used to read the boot code version number.
Table 503. IAP Compare command
Command
Compare
Input
Command code: 56 (decimal)
Param0(DST):
Starting flash or RAM address of data bytes to be compared; should be a word boundary.
Param1(SRC):
Starting flash or RAM address of data bytes to be compared; should be a word boundary.
Param2:
Number of bytes to be compared; should be a multiple of 4.
Status 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 504. Reinvoke ISP
Command
Compare
Input
Command code: 57 (decimal)
Status code
None
Result
None.
Description
This command is used to invoke the boot loader in ISP mode. It maps boot vectors and configures the
peripherals for ISP.
This command may be used when a valid user program is present in the internal flash memory and the ISP
entry pin are not accessible to force the ISP mode.
Before calling this command, enable the clocks to the default USART0 RxD and TxD pins.