beautypg.com

3 erase sector(s), 4 blank check sector(s), 5 read part identification number – NXP Semiconductors LPC24XX UM10237 User Manual

Page 694: Table 30–623, Table 30–624, Table 30–625, Nxp semiconductors

background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

694 of 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 623. IAP Erase Sector(s) command

Command

Erase Sector(s)

Input

Command code: 52

10

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 624. IAP Blank check sector(s) command

Command

Blank check sector(s)

Input

Command code: 53

10

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 625. IAP Read Part Identification command

Command

Read part identification number

Input

Command code: 54

10

Parameters:

None

Return Code

CMD_SUCCESS |

Result

Result0:

Part Identification Number.

Description

This command is used to read the part identification number.