Philips LPC2119 User Manual page 247

Arm-based microcontroller
Hide thumbs Also See for LPC2119:
Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Compare
Table 220: IAP Compare command description
Command
Input
Status Code
Result
Description
Table 221: IAP Status Codes Summary
Status
Code
0
CMD_SUCCESS
1
INVALID_COMMAND
2
SRC_ADDR_ERROR
3
DST_ADDR_ERROR
4
SRC_ADDR_NOT_MAPPED
5
DST_ADDR_NOT_MAPPED
6
COUNT_ERROR
7
INVALID_SECTOR
8
SECTOR_NOT_BLANK
9
SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION
10
COMPARE_ERROR
11
BUSY
Flash Memory System and Programming
Compare
Command Code: 56
Param0(DST): Starting Flash or RAM address from where data bytes are to be compared. This
address should be a word boundary.
Param1(SRC): Starting Flash or RAM address from where data bytes are to be compared. This
address should be a word boundary.
Param2: Number of bytes to be compared. Count should be in multiple of 4.
CMD_SUCCESS |
COMPARE_ERROR |
COUNT_ERROR (Byte count is not 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. 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 can be re-mapped to RAM.
Mnemonic
LPC2119/2129/2292/2294
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.
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.
Sector is not blank.
Command to prepare sector for write operation was
not executed.
Source and destination data is not same.
Flash programming hardware interface is busy.
247
Preliminary User Manual
Description
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents