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 424 of 547
NXP Semiconductors
UM10398
Chapter 26: LPC111x/LPC11Cxx Flash programming firmware
26.4.7 Interrupts during IAP
The on-chip flash memory is not accessible during erase/write operations. When the user
application code starts executing the interrupt vectors from the user flash area are active.
Before making any IAP call, either disable the interrupts or ensure that the user interrupt
vectors are active in RAM and that the interrupt handlers reside in RAM. The IAP code
does not use or disable interrupts.
26.4.8 RAM used by ISP command handler (for LPC11Cxx parts)
ISP commands use on-chip RAM from 0x1000 017C to 0x1000 025B. The user could use
this area, but the contents may be lost upon reset. Flash programming commands use the
top 32 bytes of on-chip RAM. The stack is located at (RAM top 32). The maximum stack
usage is 256 bytes and it grows downwards.
26.4.9 RAM used by ISP command handler (for LPC111x parts)
ISP commands use on-chip RAM from 0x1000 0050 to 0x1000 017F. The user could use
this area, but the contents may be lost upon reset. Flash programming commands use the
top 32 bytes of on-chip RAM. The stack is located at (RAM top 32). The maximum stack
usage is 256 bytes and it grows downwards.
26.4.10 RAM used by IAP command handler
Flash programming commands use the top 32 bytes of on-chip RAM. The maximum stack
usage in the user allocated stack space is 128 bytes and it grows downwards.
26.5 UART ISP commands
The following commands are accepted by the ISP command handler. Detailed status
codes are supported for each command. The command handler sends the return code
INVALID_COMMAND when an undefined command is received. Commands and return
codes are in ASCII format.
CMD_SUCCESS is sent by ISP command handler only when received ISP command has
been completely executed and the new ISP command can be given by the host.
Exceptions from this rule are "Set Baud Rate", "Write to RAM", "Read Memory", and "Go"
commands.
Table 375. UART ISP command summary
ISP Command Usage Described in
Unlock U <Unlock Code> Table 376
Set Baud Rate B <Baud Rate> <stop bit> Table 377
Echo A <setting> Table 378
Write to RAM W <start address> <number of bytes> Table 379
Read Memory R <address> <number of bytes> Table 380
Prepare sector(s) for
write operation
P <start sector number> <end sector number> Table 381
Copy RAM to flash C <Flash address> <RAM address> <number of bytes> Table 382
Go G <address> <Mode> Table 383
Erase sector(s) E <start sector number> <end sector number> Table 384