Nxp Semiconductors UM10237 User Manual

Page of 792
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008 
683 of 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
Yes
Low
Yes
Yes
Yes
CRP1
Yes
High
No
No
NA
CRP1
Yes
Low
No
Yes
Yes
CRP2
Yes
High
No
No
NA
CRP2
Yes
Low
No
Yes
No
CRP3
Yes
x
No
No
NA
CRP1
No
x
No
Yes
Yes
CRP2
No
x
No
Yes
No
CRP3
No
x
No
Yes
No
Table 604. ISP command summary
ISP Command
Usage
Described in
Unlock
U <Unlock Code>
Set Baud Rate
B <Baud Rate> <stop bit>
Echo
A <setting>
Write to RAM
W <start address> <number of bytes>
Read Memory
R <address> <number of bytes>
Prepare sector(s) for 
write operation
P <start sector number> <end sector number>
Copy RAM to Flash
C <Flash address> <RAM address> <number of bytes>
Go
G <address> <Mode>
Erase sector(s)
E <start sector number> <end sector number>
Blank check sector(s)
I <start sector number> <end sector number>