UM10237_2 © NXP B.V. 2008. All rights reserved.
User manual Rev. 02 — 19 December 2008 694 o f 792
NXP Semiconductors UM10237
Chapter 30: LPC24XX Flash memory programming firmware
10.3 Erase Sector(s)
10.4 Blank check sector(s)
10.5 Read Part Identification number
Table 624. IAP Erase Secto r(s) co mman d
Command Erase Sector(s)
Input Command code: 5210
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 625. IAP Blank ch eck se ctor(s) command
Command Blank check sector(s)
Input Command code: 5310
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 626. IAP Read Part Identifica tio n command
Command Read part identification number
Input Command code: 5410
Parameters: None
Return Code CMD_SUCCESS |
Result Result0: Part Identification Number.
Description This command is used to read the part identification number.