Philips LPC213 Series User Manual page 229

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
20.8.13 Compare <address1> <address2> <no of bytes>
Table 208: ISP Compare command
Command
Input
Return Code CMD_SUCCESS | (Source and destination data are equal)
Description
Example
20.8.14 ISP Return codes
Table 209: ISP Return codes Summary
Return
Code
0
1
2
3
4
5
6
7
8
9
10
11
User manual
M
Address1 (DST): Starting Flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Address2 (SRC): Starting Flash or RAM address of data bytes to be compared.
This address should be a word boundary.
Number of Bytes: Number of bytes to be compared; should be a multiple of 4.
COMPARE_ERROR | (Followed by the offset of first mismatch)
COUNT_ERROR (Byte count is not a multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED |
PARAM_ERROR |
This command is used to compare the memory contents at two locations.
Compare result may not be correct when source or destination address
contains any of the first 64 bytes starting from address zero. First 64 bytes
are re-mapped to flash boot sector
"M 8192 1073741824 4<CR><LF>" compares 4 bytes from the RAM address
0x4000 0000 to the 4 bytes from the flash address 0x2000.
Mnemonic
CMD_SUCCESS
INVALID_COMMAND
SRC_ADDR_ERROR
DST_ADDR_ERROR
SRC_ADDR_NOT_MAPPED
DST_ADDR_NOT_MAPPED
COUNT_ERROR
INVALID_SECTOR
SECTOR_NOT_BLANK
SECTOR_NOT_PREPARED_FOR_
WRITE_OPERATION
COMPARE_ERROR
BUSY
Rev. 01 — 24 June 2005
Chapter 20: Flash Memory
Description
Command is executed successfully. Sent by ISP
handler only when command given by the host has
been completely and successfully executed.
Invalid command.
Source address is not on 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.
Destination address is not mapped in the memory
map. Count value is taken in to consideration
where applicable.
Byte count is not multiple of 4 or is not a permitted
value.
Sector number is invalid or end sector number is
greater than start sector number.
Sector is not blank.
Command to prepare sector for write operation was
not executed.
Source and destination data not equal.
Flash programming hardware interface is busy.
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10120
229

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents