Get current program (0ch), Error status codes, Write flash sector (0dh) – ThingMagic M5e-Compact User Manual

Page 72: Boot loader commands, Fault_msg_wrong_number_of_data – 100h

Advertising
background image

Boot Loader Commands

72

Command Set

Get Current Program (0Ch)

The Get Current Program command returns a code for the current program being
executed in the module. These codes are defined as follows:

To get the current program command, send the following to the module:

The module responds as follows, indicating that it is a M5e/M5e-Compact application
program:

Error Status Codes

FAULT_MSG_WRONG_NUMBER_OF_DATA – 100h

Write Flash Sector (0Dh)

The Write Flash Sector command is the same as the old Write Flash (01h) except it
has an extra flash sector argument. This allows future Mercury Embedded products to
work with the same command set.

Code

Program

0x11

M5e/M5e-C Bootloader

0x12

M5e/M5e-C Application

FF

00

0C

1D

03

SOH

Length

OpCode

CRC

FF

01

0C

00

00

12

63

43

SOH

Length

OpCode

Status

Program

CRC

FF

0F

0D

02

25

44

10

00

00

00

00

02

12

34

56

78

90

12

73

4C

SOH

Lengt
h

OpCod
e

Password

Start Address

Sector

Data To Write

CRC

Advertising
This manual is related to the following products: