
UM10800
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2016. All rights reserved.
User manual
Rev. 1.2 — 5 October 2016
386 of 487
NXP Semiconductors
UM10800
Chapter 25: LPC82x Flash In-System and In-Application Programming
25.6.2.8 Reinvoke ISP (IAP)
25.6.2.9 ReadUID (IAP)
25.6.2.10 Erase page
Table 338. IAP Reinvoke ISP
Command
Compare
Input
Command code: 57
(decimal)
Status code
None
Result
None.
Description
This command is used to invoke the bootloader in ISP mode. It maps boot
vectors, sets PCLK = CCLK, and configures USART0 pins U0_RXD and
U0_TXD. This command may be used when a valid user program is present in the
internal flash memory and the ISP entry pin is not accessible to force the ISP
mode.
Table 339. IAP ReadUID command
Command
Compare
Input
Command code: 58
(decimal)
Status code
CMD_SUCCESS
Result
Result0:
The first 32-bit word (at the lowest address).
Result1:
The second 32-bit word.
Result2:
The third 32-bit word.
Result3:
The fourth 32-bit word.
Description
This command is used to read the unique ID.
Table 340. IAP Erase page command
Command
Erase page
Input
Command code: 59 (decimal)
Param0:
Start page number.
Param1:
End page number (should be greater than or equal to start page).
Param2:
NULL
Status code
CMD_SUCCESS |
BUSY |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
INVALID_SECTOR
Result
None
Description
This command is used to erase a page or multiple pages of on-chip flash memory.
To erase a single page use the same "start" and "end" page numbers.
Param2 is overwritten by the fixed value of 12 MHz, which is the IRC reference
clock used by the flash controller.