
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
595 of 808
NXP Semiconductors
UM10360
Chapter 32: LPC17xx Flash memory interface and programming
If any CRP mode is enabled and access to the chip is allowed via the ISP, an unsupported
or restricted ISP command will be terminated with return code
CODE_READ_PROTECTION_ENABLED.
7.
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 551. Code Read Protection hardware/software interaction
CRP option
User Code
Valid
P2.10 pin at
reset
JTAG enabled LPC17xx
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 552. 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>
Read Part ID
J