Family 4 commands—verify variable length – Maxim Integrated MAXQ20-Based Microcontroller Bootloader Command Reference User Manual

Page 10

Advertising
background image

MAXQ20-Based Microcontroller Bootloader Command Reference

10

Family 4 Commands—Verify Variable Length

Command 40h—Verify Code Variable Length

Byte1

Byte2

Byte3

Byte4

(Length)

Bytes

Byte

Length+5

Byte

Length+6

Input

40h

Length

AddrL

AddrH

Data to verify

00h

00h

Output

03Eh


This command operates in the same manner as the “Load Code Variable Length” command, except that instead
of programming the input data into flash memory, it verifies that the input data matches the data already in code
space. If the data does not match, the status code is set to reflect this failure.

The Get Status command must be executed after any verify command to determine if the verify was successful.


Command 41h—Verify Data Variable Length

Byte1

Byte2

Byte3

Byte4

(Length)

Bytes

Byte

Length+5

Byte

Length+6

Input

41h

Length

AddrL

AddrH

Data to verify

00h

00h

Output

03Eh


This command operates in the same manner as the “Load Data Variable Length” command, except that instead
of writing the input data into data SRAM, it verifies that the input data matches the data already in data space. If
the data does not match, the status code is set to reflect this failure.

The Get Status command must be executed after any verify command to determine if the verify was successful.

Advertising