B.2.5 opcode 0x04: checksum memory, B.2.6 opcode 0x05: memory size query – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 252

Advertising
background image

Remote Start

MOTLoad Firmware Package User’s Manual (6806800C24D)

252

Note Verbose mode target command processing is not available with this command;
command register bit 9 is ignored.

The data to be written is specified in the data field. If the options specify 32 bit writes, then
the upper half of VR1 sources the upper 16 bits of the data (that means, the data field can
only provide the lower 16 bits). On reads, the read data is 0 extended to 32 bits and is
stored in VR1. The lower 16 bits of VR1 are returned in the result field.

The address to be used for the access is taken from VR0. Command option bits affect the
operation as follows:

Bit 15 indicates read (0) or write (1) operation.

Bit 14 indicates whether to auto-increment VR0 after the access is performed. If 0, the
contents of VR0 is unaffected by this command. If 1, the contents of VR0 is
incremented by 1, 2, or 4 depending on the size of the access.
The auto increment feature may be used during downloads of sequential data to avoid
the overhead of issuing an additional write virtual register command after each datum
is written.

Bits 12 and 13 specify the size of the access. 00 indicates an 8 bit, 01 indicates a 16 bit
and 10 indicates 32 bits.

B.2.5

Opcode 0x04: Checksum Memory

This command calculates a 16 bit checksum over a specified range of target addresses. The
checksum algorithm used is specified at the end of this chapter in the section titled Reference
Function: srom_crc.c
. The checksum is returned in the result field. The Checksum Memory
command is useful for determining whether a download image is intact without incurring the
overhead of reading each location in the image using the memory read command.

The starting target address of the area to checksum is taken from VR0.

The number of bytes to checksum is taken from VR1.

B.2.6

Opcode 0x05: Memory Size Query

This command allows the host to determine the size and target-local address of target
memory. A series of two commands is necessary, one to provide the beginning memory
address on the target, another to determine

Advertising