UM10375 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
User manual Rev. 3 — 14 June 2011 328 of 368
NXP Semiconductors
UM10375
Chapter 21: LPC13xx Flash memory programming firmware
21.13 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.
21.13.1 Unlock <Unlock code>
Table 317. ISP command summary
ISP Command Usage Described in
Unlock U <Unlock Code> Table 318
Set Baud Rate B <Baud Rate> <stop bit> Table 319
Echo A <setting> Table 320
Write to RAM W <start address> <number of bytes> Table 321
Read Memory R <address> <number of bytes> Table 322
Prepare sector(s) for
write operation
P <start sector number> <end sector number> Table 323
Copy RAM to flash C <Flash address> <RAM address> <number of bytes> Table 324
Go G <address> <Mode> Table 325
Erase sector(s) E <start sector number> <end sector number> Table 326
Blank check sector(s) I <start sector number> <end sector number> Table 327
Read Part ID J Table 328
Read Boot code version K Table 330
Compare M <address1> <address2> <number of bytes> Table 331
ReadUID N Table 332
Table 318. ISP Unlock command
Command U
Input Unlock code: 23130
10
Return Code CMD_SUCCESS |
INVALID_CODE |
PARAM_ERROR
Description This command is used to unlock Flash Write, Erase, and Go commands.
Example "U 23130<CR><LF>" unlocks the Flash Write/Erase & Go commands.