Maxim Integrated MAXQ20-Based Microcontroller Bootloader Command Reference User Manual
Page 5

MAXQ20-Based Microcontroller Bootloader Command Reference
5
Table 2. Bootloader Status Flags
FLAG BIT
MEANING
0
Password Lock.
0 – Password protection of bootloader and debugging functions is disabled.
1 – 32-byte password match against a stored password (in program space words 0010h–
001Fh) required to allow access to the bootloader and in-circuit debugging functions.
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.
2
Word/Byte Mode Supported.
0 – The bootloader supports byte mode only.
1 – The bootloader supports word mode as well as byte mode.
3:8
Reserved.
Command 05h—Get Supported Commands
Byte1
Byte2
Byte3
Byte4
Byte5
Byte6
Byte7
Input
05h
00h
00h
00h
00h
00h
00h
Output
SupportL
SupportH
CodeLen
DataLen
03Eh
The SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value indicates which command families this
bootloader supports. If bit 0 is set to 1, it indicates that Family 0 is supported. If bit 1 is set to 1, it indicates that
Family 1 is supported, and so on.
The CodeLen and DataLen bytes return the fixed block lengths used by the Load/Dump/Verify Fixed Length
commands for code and data space, respectively. Devices which do not support fixed block loading will return 00h
for bytes five and six.
Command 06h—Get Code Size
Byte1
Byte2
Byte3
Byte4
Byte5
Input
06h
00h
00h
00h
00h
Output
SizeL
SizeH
03Eh
This command returns SizeH:SizeL, which represents the size of available code memory in words minus 1. If this
command is unsupported, the return value will be 0000h meaning “unknown amount of memory”.
Command 07h—Get Data Size
Byte1
Byte2
Byte3
Byte4
Byte5
Input
07h
00h
00h
00h
00h
Output
SizeL
SizeH
03Eh
This command returns SizeH:SizeL, which represents the size of available data memory in words minus 1. If this
command is unsupported, the return value will be 0000h meaning “unknown amount of memory”.