Table 13-3. bootloader status flags -6, Maxq7667 user’s guide, Table 13-3. bootloader status flags – Maxim Integrated MAXQ7667 User Manual

Page 224

Advertising
background image

__________________________________________________________________________________________________________

13-6

MAXQ7667 User’s Guide

Command 04h—Get Status

The status code returned by this command is defined in Table 13-2. The flags byte contains the following bit status flags.

I/O

Byte 1

Byte 2

Input

04h

Output

Flags

Status Code

Command 05h—Get Supported Commands

The SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value that 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. Fixed length is not supported if it returns.

Command 06h—Get Code Size

This command returns SizeH:SizeL, which represents the size of available code memory in words minus 1. If this command is unsup-

ported, the return value will be 0000h meaning “unknown amount of memory.”

Command 07h—Get Data Size

This command returns SizeH:SizeL, which represents the size of available data memory in words minus 1. If this command is unsup-

ported, the return value will be 0000h meaning “unknown amount of memory.”

FLAG BIT

FUNCTION

0

Password Lock
0 = The password is unlocked or had a default value; password-protected commands can be used.
1 = The password is locked. Password-protected commands cannot be used.

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 to 8

Reserved

Table 13-3. Bootloader Status Flags

I/O

Byte 1

Byte 2

Byte 3

Byte 4

Input

05h

Output

SupportL

SupportH

CodeLen

DataLen

I/O

Byte 1

Byte 2

Input

06h

Output

SizeL

SizeH

I/O

Byte 1

Byte 2

Input

07h

Output

SizeL

SizeH

Advertising