DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
254 of 313
NXP Semiconductors
UM10601
Chapter 21: LPC800 Flash ISP and IAP programming
21.4.2.3 Erase Sector(s) (IAP)
21.4.2.4 Blank check sector(s) (IAP)
21.4.2.5 Read Part Identification number (IAP)
Table 237. IAP Erase Sector(s) command
Command
Erase Sector(s)
Input
Command code: 52 (decimal)
Param0:
Start Sector Number
Param1:
End Sector Number (should be greater than or equal to start sector
number).
Param2:
System Clock Frequency (CCLK) in kHz.
Return Code
CMD_SUCCESS |
BUSY |
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION |
INVALID_SECTOR
Result
None
Description
This command is used to erase a sector or multiple sectors of on-chip flash
memory. The boot sector can not be erased by this command. To erase a single
sector use the same "Start" and "End" sector numbers.
Table 238. IAP Blank check sector(s) command
Command
Blank check sector(s)
Input
Command code: 53 (decimal)
Param0:
Start Sector Number
Param1:
End Sector Number (should be greater than or equal to start sector
number).
Return Code
CMD_SUCCESS |
BUSY |
SECTOR_NOT_BLANK |
INVALID_SECTOR
Result
Result0:
Offset of the first non blank word location if the Status Code is
SECTOR_NOT_BLANK.
Result1:
Contents of non blank word location.
Description
This command is used to blank check a sector or multiple sectors of on-chip flash
memory. To blank check a single sector use the same "Start" and "End" sector
numbers.
Table 239. IAP Read Part Identification command
Command
Read part identification number
Input
Command code: 54 (decimal)
Parameters:
None
Return Code
CMD_SUCCESS
Result
Result0:
Part Identification Number.
Description
This command is used to read the part identification number.