beautypg.com

6 read boot code version number, 7 compare

Page 695: Table 30–626, Table 30–627, Table 30–628, Nxp semiconductors

background image

UM10237_4

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

User manual

Rev. 04 — 26 August 2009

695 of 792

NXP Semiconductors

UM10237

Chapter 30: LPC24XX Flash memory programming firmware

10.6 Read Boot code version number

10.7 Compare

10.8 Reinvoke ISP

Table 626. IAP Read Boot Code version number command

Command

Read boot code version number

Input

Command code: 55

10

Parameters:

None

Return Code

CMD_SUCCESS |

Result

Result0:

2 bytes of boot code version number in ASCII format. It is to be

interpreted as .

Description

This command is used to read the boot code version number.

Table 627. IAP Compare command

Command

Compare

Input

Command code: 56

10

Param0(DST):

Starting Flash or RAM address of data bytes to be compared. This

address should be a word boundary.

Param1(SRC):

Starting Flash or RAM address of data bytes to be compared. This

address should be a word boundary.

Param2:

Number of bytes to be compared; should be a multiple of 4.

Return Code

CMD_SUCCESS |

COMPARE_ERROR |

COUNT_ERROR (Byte count is not a multiple of 4) |

ADDR_ERROR |

ADDR_NOT_MAPPED

Result

Result0:

Offset of the first mismatch if the Status Code is COMPARE_ERROR.

Description

This command is used to compare the memory contents at two locations.

The result may not be correct when the source or destination includes any
of the first 64 bytes starting from address zero. The first 64 bytes can be
re-mapped to RAM.

Table 628. Reinvoke ISP

Command

Compare

Input

Command code: 57

10