Philips LPC213 Series User Manual page 235

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
20.9.7 Compare <address1> <address2> <no of bytes>
Table 217: IAP Compare command
Command
Input
Return Code
Result
Description
20.9.8 Reinvoke ISP
Table 218: Reinvoke ISP
Command
Input
Return Code
Result
Description
20.9.9 IAP Status codes
Table 219: IAP Status codes Summary
Status
Code
0
1
2
3
4
User manual
Compare
Command code: 56
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.
CMD_SUCCESS |
COMPARE_ERROR |
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED
Result0: Offset of the first mismatch if the Status Code is COMPARE_ERROR.
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.
Compare
Command code: 57
None
None.
This command is used to invoke the bootloader in ISP mode. This command
maps boot vectors, configures P0.1 as an input and sets the vpb divider register to
0 before entering the ISP mode. This command may be used when a valid user
program is present in the internal flash memory and the P0.14 pin is not
accessible to force the ISP mode. This command does not disable the PLL hence
it is possible to invoke the bootloader when the part is running off the PLL. In such
case the ISP utility should pass the PLL frequency after autobaud handshake.
Another option is to disable the PLL before making this IAP call.
Mnemonic
CMD_SUCCESS
INVALID_COMMAND
SRC_ADDR_ERROR
DST_ADDR_ERROR
SRC_ADDR_NOT_MAPPED
Rev. 01 — 24 June 2005
10
10
Description
Command is executed successfully.
Invalid command.
Source address is not on a word boundary.
Destination address is not on a correct boundary.
Source address is not mapped in the memory map.
Count value is taken in to consideration where
applicable.
UM10120
Chapter 20: Flash Memory
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
235

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents