UM10237_2 © NXP B.V. 2008. All rights reserved.
User manual Rev. 02 — 19 December 2008 683 o f 792
NXP Semiconductors UM10237
Chapter 30: LPC24XX Flash memory programming firmware
In case a CRP mode is enabled and access to the chip is allowed via the ISP, an
unsupoorted or restricted ISP command will be terminated with return code
CODE_READ_PROTECTION_ENABLED.
9. 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 603. Code Read Protection hardware/software interaction
CRP option User Code
Valid P2.10 pin at
reset JTAG enabled LPC2400
enters ISP
mode
partial Flash
Update in ISP
mode
No No X Yes Yes Yes
No Yes High Yes No NA
No Ye s L ow Yes Yes Ye s
CRP1 Yes High No No NA
CRP1 Yes Low No Yes Yes
CRP2 Yes High No No NA
CRP2 Yes Low No Yes No
CRP3Yesx NoNoNA
CRP1 No x No Yes Yes
CRP2 No x No Yes No
CRP3 No x No Yes No
Table 604. ISP co mmand summary
ISP Command Usage Described in
Unlock U <Unlock Code> Table30–605
Set Baud Rate B <Baud Rate> <stop bit> Table30–606
Echo A <setting> Table 30–608
Write to RAM W <start address> <number of bytes> Table 30–609
Read Memory R <address> <number of bytes> Table 30–610
Prepare sector(s) for
write operation P <start sector number> <end sector number> Table 30–611
Copy RAM to Flash C <Flash address> <RAM address> <number of bytes> Table30–612
Go G <address> <Mode> Table 30–613
Erase sector(s) E <start sector number> <end sector number> Table 30–614
Blank check sector(s) I <start sector number> <end sector number> Table30–615