UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
147 of 258
17.1 How to read this chapter
17.2 Features
•
In-System Programming: The LPC1102 has no dedicated ISP entry pin. Therefore,
user code is required to invoke ISP functionality. Unprogrammed parts automatically
boot into ISP mode.
•
In-Application Programming: In-Application (IAP) programming is performing erase
and write operation on the on-chip flash memory, as directed by the end-user
application code.
•
Flash access times can be configured through a register in the flash controller block.
•
Erase time for one sector is 100 ms ± 5%. Programming time for one block of 256
bytes is 1 ms ± 5%.
Remark:
In addition to the ISP and IAP commands, a register can be accessed in the
flash controller block to configure flash memory access times, see
17.3 General description
17.3.1 Bootloader
The bootloader controls initial operation after reset and also provides the means to
accomplish programming of the flash memory via UART. This could be initial
programming of a blank device, erasure and re-programming of a previously programmed
device, or programming of the flash memory by the application program in a running
system.
The bootloader code is executed every time the part is powered on or reset. If a valid user
program is found then the execution control is transferred to it. If a valid user program is
not found, the auto-baud routine is invoked.
The loader can execute the ISP command handler or the user application code. However,
in order to enter ISP mode, the user code must provide for an ISP entry mechanism
because the LPC1102 does not have an ISP entry pin. Unprogrammed parts boot in ISP
mode by default.
17.3.2 Memory map after any reset
The boot block is 16 kB in size. The boot block is located in the memory region starting
from the address 0x1FFF 0000. The bootloader is designed to run from this memory area,
but both the ISP and IAP software use parts of the on-chip RAM. The RAM usage is
UM10429
Chapter 17: LPC1102 Flash memory programming firmware
Rev. 1 — 20 October 2010
User manual
Table 146. LPC1102 flash configuration
Type number
Flash
ISP via UART
LPC1102
32 kB
yes