UM11029
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
42 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.6.6 Read Boot code version number
5.6.7 Compare <address1> <address2> <no of bytes>
5.6.8 Reinvoke ISP
Table 43.
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 44.
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.
Table 45.
Reinvoke ISP
Command
Compare
Input
Command code: 57 (decimal)
Param0(mode):
ISP interface selection
0 - Auto or UIS ISP (only applicable when FAIM configuration is invalid.)
1 - USART ISP (Match FAIM ISP configuration if it is valid.)
2 - I2C ISP (Match FAIM ISP configuration if it is valid.)
3 - SPI ISP (Match FAIM ISP configuration if it is valid.)
Status code
ERR_ISP_REINVOKE_ISP_CONFIG
Result
None.
Description
This command is used to invoke the ISP. If the ISP is invoked, then the CPU clock is switched to FRO.
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.
If using USART ISP mode, enable the clocks to the default before calling this command.