EasyManua.ls Logo

Philips LPC2129 - Page 277

Philips LPC2129
306 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Flash Memory System and Programming 277 May 03, 2004
Philips Semiconductors Preliminary User Manual
LPC2119/2129/2194/2292/2294ARM-based Microcontroller
Compare <address1> <address2> <number of bytes>
Table 212: ISP Compare command description
Command M
Input
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.
Return Code
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
Description This command is used to compare the memory contents at two locations.
Example
"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.

Table of Contents

Related product manuals