UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
154 of 258
NXP Semiconductors
UM10429
Chapter 17: LPC1102 Flash memory programming firmware
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.
17.5.1 Unlock <Unlock code> (UART ISP)
17.5.2 Set Baud Rate <Baud Rate> <stop bit> (UART ISP)
Table 151. UART 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>
ReadUID
N
Table 152. UART 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.
Table 153. UART ISP Set Baud Rate command
Command
B
Input
Baud Rate: 9600 | 19200 | 38400 | 57600 | 115200
Stop bit: 1 | 2