0X61 "Flash One Line - Globalstar ST100 User Manual

Hide thumbs Also See for ST100:
Table of Contents

Advertisement

8545-0194-01 v1.0
Jump to bootloader response:
If you issue this command from the application, the response will be a simple echo of the command, and then the ASIC
processor will reset and come back up in the bootloader. You must delay for about one second to allow the bootloader to begin
running before issuing the next command.
If this command is issued when already in the bootloader, it causes a commitment to re-load an application. In other words, if you
issue this command in the application, but not again, you can issue "0x62" (see below) to jump right back into the application.
However, if you issue 0x60 in the application, and then again in the bootloader, you have committed to load a new application, A
response of length 6 will be returned with a condition code as follows:
BYTE
BITS
0
0 - 7
1
0 - 7
2
0 - 7
3
0 - 7
4-5
0 - 15

4.5.2.2. 0x61 "Flash One Line"

This command is used to flash one line from an Intel HEX format file into the program memory of the processor. As the table
below illustrates, there is roughly a 1 to 1 correspondence between fields within the Intel Hex Record line, and fields within this
message. The ASCII represented HEX values within the Intel Hex file are represented as binary numbers in this binary record.
The Wikipedia article on the Intel Hex format may be the best reference available for concise description of the Intel Hex format:
https://en.wikipedia.org/wiki/Intel_HEX
BYTE
BITS
PARAMETER
0
0 - 7
Leader
1
0 - 7
Length
2
0 - 7
Command
3
0 - 7
Processor Number
4
0 - 7
Byte Count
5-6
0 - 15
Address
7
0 - 7
Record Type
8-n
variable
Data
n+1-n+2
0 - 15
CRC
ST100 User Manual v1
JUMP TO BOOTLOADER RESPONSE
PARAMETER
Leader
Length
Command
0xFF = Bootloader is running and application area is blank or not completely loaded.
0x03 = Bootloader is running and new executable code has been loaded during this
execution of the bootloader, bootloader is ready to jump to application if commanded.
Response Code
0x02 = Bootloader is running but application code that existed when the bootloader started
is still in place. However, having issued this command again, you have now committed to
CRC
FLASH ONE LINE MESSAGE
Length contains the length of this entire binary message, including CRC (as in all other message of this protocol).
The "byte count" field (the first 2-digit hex number) of the Intel Hex Record line goes here (as a binary value).
The start address of this hex record. (The 2 bytes represented by the 4 hex characters of the Intel Hex Record
The data fields of the Intel Hex record. Number of bytes in this portion will be equal to the value in byte 4
(byte count) Note, the "checksum" field of the HEX record is omitted as its function is provided by the CRC field
Confidential & Proprietary Information
DESCRIPTION
Always a value of 0xAA
0x06
0x60
re-load the application.
DESCRIPTION
Always a value of 0xAA
It will be "byte count" (byte 4 value, below) +10
0x61
Must be 0 for the ST100 Board ASIC
line goes here as a binary value.)
The "Record Type" field of the Intel Hex record
of this message.
59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents