beautypg.com

6 command 05h—get supported commands, 7 command 06h—get code size, 8 command 07h—get data size – Maxim Integrated MAX31782 User Manual

Page 161: Table 18-7 . bootloader status codes -10, 6command05h—getsupportedcommands, 7command06h—getcodesize, 8command07h—getdatasize, Table18-7.bootloaderstatuscodes

background image

MaximIntegrated 18-10

MAX31782 User’s Guide

Revision 0; 8/11

18.3.6Command05h—GetSupportedCommands

The SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value that indicates which command families the boot-
loader 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 . The value returned by the MAX31782 is 403Fh, indicating that command families 0, 1, 2, 3, 4, 5 and E are
supported . This command is not password protected .

18.3.7Command06h—GetCodeSize

This command returns SizeH:SizeL, which represents the size of available code memory in words minus 1 . The
MAX31782 returns a value of 7FFFh, which indicates 32kWords of program memory are available . This command is not
password protected .

18.3.8Command07h—GetDataSize

This command returns SizeH:SizeL, which represents the size of available data memory in words minus 1 . The
MAX31782 returns a value of 03FFh, which indicates 1kWords of data memory are available . This command is not
password protected .

Table18-7.BootloaderStatusCodes

Byte1

Byte2

Byte3

Byte4

Byte5

Byte6

Byte7

Byte8

Command

NOP

DataOut

DataOut

DataOut

DataOut

Return

DummyRX

Input

05h

00h

00h

00h

00h

00h

00h

00h

Output

X

X

SupportL

SupportH

00h

00h

3Eh

X

Byte1

Byte2

Byte3

Byte4

Byte5

Byte6

Command

NOP

DataOut

DataOut

Return

DummyRX

Input

06h

00h

00h

00h

00h

00h

Output

X

X

SizeL

SizeH

3Eh

X

Byte1

Byte2

Byte3

Byte4

Byte5

Byte6

Command

NOP

DataOut

DataOut

Return

DummyRX

Input

07h

00h

00h

00h

00h

00h

Output

X

X

SizeL

SizeH

3Eh

X

STATUSVALUE

MEANING

00

NoError.The last command completed successfully .

01

FamilyNotSupported.An attempt was made to use a command from a family which the bootloader does
not support .

02

InvalidCommand.An attempt was made to use a nonexistent command within a supported command
family .

03

NoPasswordMatch.An attempt was made to use a password-protected command without first matching
a valid password . Or, the Password Match command was called with an incorrect password value .

04

BadParameter.An input parameter passed to the command was out of range or otherwise invalid .

05

VerifyFailed.The verification step failed on a Load/Verify or Verify command .

06

UnknownRegister.An attempt was made to read from or write to a nonexistent register .

07

WordModeNotSupported.An attempt was made to set word mode access, but the bootloader supports
byte mode access only .

08

MasterEraseFailed.The bootloader was unable to perform master erase .