UM11029
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
41 of 515
NXP Semiconductors
UM11029
Chapter 5: LPC84x ISP and IAP
5.6.3 Erase Sector(s)
5.6.4 Blank check sector(s)
5.6.5 Read Part Identification number
Table 40.
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.
Status 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. To erase a single sector
use the same "Start" and "End" sector numbers.
Remark:
All user code must be written in such a way that no master accesses the flash while this command
is executed and the flash is erased.
Table 41.
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).
Status 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 42.
IAP Read Part Identification command
Command
Read part identification number
Input
Command code: 54 (decimal)
Parameters:
None
Status code
CMD_SUCCESS
Result
Result0:
Part Identification Number.
Description
This command is used to read the part identification number.