0X62 "Enter Application - Globalstar ST100 User Manual

Hide thumbs Also See for ST100:
Table of Contents

Advertisement

8545-0194-01 v1.0
There are some special behaviors of the bootloader when receiving this message type to be aware of:
The first "0x61" type command the bootloader receives after it is entered causes it to erase the existing application and write
the data in the "0x61" message to the specified address in flash. As a result of the page-by-page erase taking some time,
the ACK of the first message may take up to 2 seconds to return. ACK's of subsequent "0x61" messages will return almost
immediately, as the bootloader is simply writing the subsequent data to the already-erased flash. If the bootloader is entered
and no "0x61 bootloader may be exited and the application re-run. Once a "0x61" message is sent, the user has committed
to load the complete application before jumping out of the bootloader.
The "end of file" marker in every Intel Hex file looks like this: ":00000001FF". This marker encodes an address of 0, a byte
count of 0, a "record type" of 0x01 (End of File), (and a checksum of 0xFF). When the end of the Intel Hex file is reached,
this marker must be encoded by the user application into a "0x61" message via the format in the table above and sent to
the device. When the bootloader encounters this marker, it verifies the validity of the application, calculates a CRC/Signature
for the application, and sets its internal flags to indicate that the application is valid and OK to jump to. As this check and
calculation takes some time, the transmission of this marker will result in the ACK taking up to 2 seconds to return and the
loading application must be accepting of that delay.
Response to the Flash One Line message:
BYTE
BITS
0
0 - 7
1
0 - 7
2
0 - 7
3
0 - 7
4-5
0 - 15

4.5.2.3. 0x62 "Enter Application"

BYTE
BITS
0
0 - 7
1
0 - 7
2
0 - 7
3-4
0 - 15
ST100 User Manual v1
FLASH ONE LINE MESSAGE RESPONSE
PARAMETER
Leader
Length
Command
Response codes with the MSB set are "NAKs" or "fails" and indicate that the bootloader
didn't do anything with the record. Codes without the MSB set are various success codes,
0x01 = OK but not done loading. (Returned for each line loaded until End of File is
Response Code
0x00 = OK and done. (This is the response to End of File when loaded code has passed
0xF0 = Address outside of application memory range. (In the ST100 board, this code is
CRC
ENTER APPLICATION COMMAND
PARAMETER
Leader
Length
Command Code
CRC
Confidential & Proprietary Information
DESCRIPTION
Always a value of 0xAA
0x06
0x61
indicating that the message was acted on as expected.
received.)
acceptance tests.
also returned if "processor number" is not 0.)
0xFF = Message format error or unknown error.
DESCRIPTION
Always a value of 0xAA
0x05
0x62
60

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents