Philips LPC2119 User Manual page 240

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

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Compare <address1> <address2> <number of bytes>
Table 211: ISP Compare command description
Command
Input
Return Code
Description
Example
Flash Memory System and Programming
M
Address1(DST): Starting Flash or RAM address from where data bytes are to be compared. This
address should be on word boundary.
Address2(SRC): Starting Flash or RAM address from where data bytes are to be compared. This
address should be on word boundary.
Number of Bytes: Number of bytes to be compared. Count should be in multiple of 4.
CMD_SUCCESS | (Source and destination data is same)
COMPARE_ERROR | (Followed by the offset of first mismatch)
COUNT_ERROR (Byte count is not multiple of 4) |
ADDR_ERROR |
ADDR_NOT_MAPPED |
PARAM_ERROR
This command is used to compare the memory contents at two locations.
"M 8192 1073741824 4<CR><LF>" compares 4 bytes from the RAM address 0x4000 0000 to the 4
bytes from the flash address 0x2000. 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.
LPC2119/2129/2292/2294
240
Preliminary User Manual
January 08, 2004

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2292Lpc2294

Table of Contents