
Maxim Integrated 18-9
MAX31782 User’s Guide
Revision 0; 8/11
18.3.3 Command 02h—Master Erase
This command erases (sets to FFFFh) all words in the program flash memory and writes all words in the data SRAM
to zero. This command is not password protected. After this command completes, the password lock bit is automati-
cally cleared, allowing access to all bootloader commands. This command requires approximately 40 ms to complete.
Polling for a return value of 3Eh can be performed during this execution time to determine when the master erase has
completed.
18.3.4 Command 03h—Password Match
This command accepts a 32-byte password value, which is matched against the password in program memory from
byte address 0020h through 003Fh. If the entered value matches the password in program memory, the password lock
bit is cleared. This command is not password protected.
18.3.5 Command 04h—Get Status
The Status Flags and Status Code returned by the Get Status command are defined in Table 18-6 and Table 18-7. This
command is not password protected. The Status Codes are set whenever an error condition occurs and only reflect the
last error. The Status Codes are cleared:
• When the bootloader is initially entered.
• At the start of execution of all commands except Familiy 0 commands.
• At the start of execution of the Family 0 Master Erase and Set Access Mode commands.
Table 18-6. Bootloader Status Flags
Byte 1 Byte 2 Byte 3 Byte 4
Command NOP Return Dummy RX
Input
02h 00h 00h 00h
Output
X X 3Eh X
Byte 1 Bytes 2 to 33 Byte 34 Byte 35 Byte 36
Command Data In NOP Return Dummy RX
Input
03h 32-Byte Password 00h 00h 00h
Output
X X X 3Eh X
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6
Command NOP Data Out Data Out Return Dummy RX
Input
04h 00h 00h 00h 00h 00h
Output
X X Flags Status Code 3Eh X
FLAG BIT MEANING
8:3
Reserved.
2
Word/Byte Mode Supported.
0 – The bootloader supports byte mode only.
1 – The bootloader supports word mode as well as byte mode.
(Note: the MAX31782 supports byte mode only)
1
Word/Byte Mode.
0 – The bootloader is currently in byte mode for memory reads/writes.
1 – The bootloader is currently in word mode for memory reads/writes.
(Note: the MAX31782 supports byte mode only)
0
Password Lock. This bit will match the SC.PWL bit.
0 – The password is unlocked or had a default value; password-protected commands may be used.
1 – The password is locked. Password-protected commands may not be used.
Comentarios a estos manuales