User Guide

Table Of Contents
Boot Loader Commands
48 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 the application program:
Write Flash Sector (0Dh)
The Write Flash Sector command is used to write data to the flash memory. Before
writing to flash it is imperative that the flash be erased first. Attempting to write to flash
before it is erased will generate an error. Alternatively the
Modify Flash Sector (0Fh)
command can be used.
Loading an Application Image
A series of write flash commands is used to load a new application program image into
flash. The Write Flassh Sector command verifies the CRC of the received data but does
not verify the CRC of the complete application image. Use the
Verify Image CRC (08h)
command to verify the application once it is uploaded.
The start address is a 32-bit sector offset address. It is a word address, that is different
from the byte address used for instruction memory. The application code must be loaded
Code Program
0x21 M6e-TC Bootloader
0x22 M6e-TC Application
FF 00 0C 1D 0C
SOH Length OpCode CRC
FF 01 0C 00 00 22 ?? ??
SOH Length OpCode Status Program CRC