Command Descriptions; Process To Manually Upgrade - Laird LT2510 User Manual

Table of Contents

Advertisement

LT2510
Wireless Module
SERIAL FIRMWARE
UPGRADES
35 www.lairdtech.com

COMMAND DESCRIPTIONS

Read Flash
This command is used to read the encrypted image of
the flash that resides on the radio module. If the image
has already been decrypted, then this command will
report an error.
*The length of this command is dictated by the dynamic
memory heap. If the heap is mostly free, then a length of
up to 700 bytes could be accepted. However, if the heap
is full, the command will return with an error, or possibly
no response at all if the heap is completely full.
PROCESS TO MANUALLY UPGRADE LT2510
Using the above AT commands it is possible to upgrade a LT2510 over the UART from a microcontroller or other
device. The basic steps to do this are:
1. Make sure the OEM Host has a copy of an encrypted binary firmware upgrade files.
2. Erase the Existing flash on the LT2510
a. Command: 0xCC 0xC6
b. Response: 0xCC 0xC6
3. Write binary images to flash . Note that the firmware is loaded in multiple images. The primary image
(the file denoted as "[00]") MUST be sent first. The first write to memory location 0x800 or above
will incur a 300ms delay while the memory between addresses 0x800 and 0x3BFF is erased. Because this
memory contains active code, the radio will now disconnect from the network until the upgrade process
is completed.
a. While not end of binary file
i. Command: 0xCC 0xC4 0x00 0x00 0x00 0x80 <80 bytes of data>
ii. Response: 0xCC 0xC4 0x00 0x00 0x00
b. Check EEPROM Write
i. Command 0xCC 0xC9 0x00 0x00 0x00 0x80
ii. Response: 0xCC 0xC9 0x00 0x00 0x00 0x00 0x80 <80 bytes of data>
c. Verify Read response is the same data that was written
d. Increment start position
e. Verify length
f. Repeat steps a-f until entire image has been loaded
4. Decrypt FW image
a. Command: 0xCC 0xC5
b. Response: 0xCC 0xC5 0x00
5. Reset radio to begin using new FW image
a. Command: 0xCC 0xFF
6. Repeat steps 2-5 for each binary file.
Command:
<0xCC> <0xC9> <StartAddress[1,0]>
<Length[1,0]>
Number of Bytes Returned:
5
Response:
<0xCC> <0xC9> <Result> <StartAddress[1,0]>
<Data>
Parameter Range:
<StartAddress[1,0]>: 0x00 0x00 – 0x3A 0xFF
<Length[1,0]>: 0x00 0x00 – 0x02BC
<BytesToWrite>: The actual data being written
<Result>
0x00
No Error
0x03
Command Timed Out
0x06
Bounds Exceeded (Start Address
+ Length is outside the image
download area)
0x04
Image Already Decrypted
0x02
Not Enough Free Memory, try the
command again with a shorter
Length
<Data>:Contents of Flash
Laird Technologies

Advertisement

Table of Contents
loading

Table of Contents