beautypg.com

1 cmp, 2 cp, 3 find – Artesyn ATCA-9305 User's Manual (May 2014) User Manual

Page 235: 1 cmp 9.8.2 cp 9.8.3 find

background image

Management Processor Monitor

ATCA-9305 User’s Manual (10009109-07)

235

9.8.1

cmp

The cmp command compares count objects between addr1 and addr2. Any differences are
displayed on the console display.

Definition

cmp [.b, .w, .l] addr1 addr2 count

9.8.2

cp

The cp command copies count objects located at the source address to the target address.

Definition

cp [.b, .w, .l] source target count

Example

In this example, the cp command is used to copy 0x1000, 32-bit values from address 0x100000
to address 0x80000.

=> cp 100000 80000 1000

9.8.3

find

The find command searches from base_addr to top_addr looking for pattern. For the find
command to work properly, the size of pattern must match the size of the object flag. The -a
option searches for the absence of the specified pattern.

Definition

find [.b, .w, .l] [-a] base_addr top_addr pattern

If the target address is located in the range of the flash device, it will program the flash with
count objects from the source address. The cp command does not erase the flash region prior
to copying the data. The flash region must be manually erased using the erase command
prior to using the cp command.