Family 0 commands (always available) – Maxim Integrated MAXQ20-Based Microcontroller Bootloader Command Reference User Manual

Page 4

Advertising
background image

MAXQ20-Based Microcontroller Bootloader Command Reference

4

Family 0 Commands (Always Available)

Command 00h—No Operation

Byte1

Input

00h

Output

03Eh



Command 01h—Exit Loader

Byte1

Byte2

Input

01h

00h

Output

03Eh


This command causes the bootloader command loop to exit. Upon exit, the SPE bit is cleared and the device
performs and internal reset. Following the reset, execution jumps to the beginning of application code at address
0000h.


Command 02h—Master Erase

Byte1

Byte2

Byte3

Input

02h

00h

00h

Output

03Eh

00h

03Eh


This command erases (programs to FFFFh) all words in the program flash memory and writes all words in the
data SRAM and the AES cryptographic memory to zero. After this command completes, if SL=1 the security lock
bit is automatically cleared and the device resets, but the device will still remain in loader mode.

Devices which support the Set Context command require the desired context to be set before executing this
command. The selected context will designate which area(s) (system, user loader, or user application) will be
erased.


Command 03h—Password Match

Byte1

Bytes 2 … 33

Byte 34

Byte 35

Input

03h

32-byte password value

00h

00h

Output

03Eh


This command is used to gain access to memory on devices protected by the 32-byte password match feature.

Devices which support the Set Context command require the desired context to be set before executing this
command. The selected context will designate which area (system, user loader, or user application) the password
will be compared against.


Command 04h—Get Status

Byte1

Byte2

Byte3

Byte4

Byte5

Input

04h

00h

00h

00h

00h

Output

Flags

Status Code

03Eh


The status code returned by this command is defined in Table 1. The flags byte contains the bit status flags
shown in Table 2.

Advertising