Flash Memory System and Programming
234
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
ARM-based Microcontroller
ISP Commands
The following commands are accepted by the ISP command handler. Detailed return 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.
Unlock <Unlock code>
Table 197: 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
Read Boot code version
K
Compare
M <address1> <address2> <number of bytes>
Table 198: ISP Unlock command description
Command
U
Input
Unlock code: 23130
Return Code
CMD_SUCCESS |
INVALID_CODE |
PARAM_ERROR
Description
This command is used to unlock flash Write/Erase & Go commands.
Example
"U 23130<CR><LF>" unlocks the flash Write/Erase & Go commands.