© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
240
Philips Semiconductors
UM10161
Volume 1
Chapter 19: Flash memory
19.8.9 Erase sector(s) <start sector number> <end sector number>
19.8.10 Blank check sector(s) <sector number> <end sector number>
19.8.11 Read part identification number
Table 219: 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 220: 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 221: ISP Read part identification number 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 222: LPC2101/02/03 part identification numbers
Device
ASCII/dec coding
Hex coding
LPC2103
327441
0x0004 FF11