Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 444 of 547
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
26.7.8 Reinvoke ISP (IAP)
26.7.9 ReadUID (IAP)
26.7.10 Erase page
Remark: See Table 369 for list of parts that implement this command.
Table 403. 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, configures UART pins RXD and TXD, resets
counter/timer CT32B1 and resets the U0FDR (see Table 200
). 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.
If there is more than one boot source available (see Section 26.1), pin PIO0_3
must be configured correctly to select the appropriate boot source:
Configure pin PIO0_3 as output.
Drive the output to LOW or HIGH depending on the boot source (see
Section 26.3.1).
Table 404. 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 405. 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: System Clock Frequency (CCLK) in kHz.
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. See
Table 36 9
for list of parts that implement this command.