Compare <Address1> <Address2> <No Of Bytes; Reinvoke Isp; Iap Status Codes - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
21.9.7 Compare <address1> <address2> <no of bytes>
Table 312: IAP Compare command
Command
Input
Return Code
Result
Description

21.9.8 Reinvoke ISP

Table 313: Reinvoke ISP
Command
Input
Return Code
Result
Description

21.9.9 IAP Status codes

Table 314: IAP Status codes Summary
Status
Code
0
1
2
3
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.
Important: TIMER1 registers must be programmed with reset values before
"Reinvoke ISP" command is used.
Mnemonic
CMD_SUCCESS
INVALID_COMMAND
SRC_ADDR_ERROR
DST_ADDR_ERROR
Rev. 01 — 15 August 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.
UM10139
Chapter 21: Flash Memory
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
310

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents