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
159 of 258
NXP Semiconductors
UM10429
Chapter 17: LPC1102 Flash memory programming firmware
17.5.9 Erase sector(s) <start sector number> <end sector number> (UART
ISP)
17.5.10 Blank check sector(s) <sector number> <end sector number> (UART
ISP)
17.5.11 Read Part Identification number (UART ISP)
Table 160. UART ISP Erase sector command
Command
E
Input
Start Sector Number
End Sector Number:
Should be greater than or equal to start sector number.
Return Code
CMD_SUCCESS |
BUSY |
INVALID_SECTOR |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
CMD_LOCKED |
PARAM_ERROR |
CODE_READ_PROTECTION_ENABLED
Description
This command is used to erase one or more sector(s) of on-chip flash memory. The
boot block can not be erased using this command. This command only allows
erasure of all user sectors when the code read protection is enabled.
Example
"E 2 3<CR><LF>" erases the flash sectors 2 and 3.
Table 161. UART ISP Blank check sector command
Command
I
Input
Start Sector Number:
End Sector Number:
Should be greater than or equal to start sector number.
Return Code
CMD_SUCCESS |
SECTOR_NOT_BLANK (followed by <Offset of the first non blank word location>
<Contents of non blank word location>) |
INVALID_SECTOR |
PARAM_ERROR
Description
This command is used to blank check one or more sectors of on-chip flash memory.
Blank check on sector 0 always fails as first 64 bytes are re-mapped to flash
boot block.
Example
"I 2 3<CR><LF>" blank checks the flash sectors 2 and 3.
Table 162. UART ISP Read Part Identification command
Command
J
Input
None.
Return Code
CMD_SUCCESS followed by part identification number in ASCII (see
Description
This command is used to read the part identification number.
Table 163. Part identification number
Device
Hex coding
LPC1102
0x2500 102B