Difference between revisions of "Firmware file format (.gdf)"

From Granite Devices Knowledge Wiki
Jump to: navigation, search
[checked revision][checked revision]
(Created page with "Argon firmware file contains embedded software for Argon (servo drive). Firmware file is generated by makefirmware utily. ==File format spec== ===Header=== IDString - 4 by...")
 
Line 1: Line 1:
 
Argon firmware file contains embedded software for [[Argon (servo drive)]]. Firmware file is generated by makefirmware utily.
 
Argon firmware file contains embedded software for [[Argon (servo drive)]]. Firmware file is generated by makefirmware utily.
==File format spec==
+
==File format byte by byte==
 
===Header===
 
===Header===
 
IDString - 4 bytes, always="GDFW"
 
IDString - 4 bytes, always="GDFW"
 +
 
BLFileVersion - 2 bytes, current=300
 
BLFileVersion - 2 bytes, current=300
 +
 
TargetDriveType - 2 bytes, Argon=4000, Ion=5000
 
TargetDriveType - 2 bytes, Argon=4000, Ion=5000
 +
 
HostFWbytes - 4 bytes, number of bytes for STM32 CPU
 
HostFWbytes - 4 bytes, number of bytes for STM32 CPU
 +
 
GCFWbytes - 4 bytes, number of bytes for GraniteCore CPU
 
GCFWbytes - 4 bytes, number of bytes for GraniteCore CPU
 
===Data===
 
===Data===
 
Data of HostFW begins. Amount of bytes is HostFWbytes
 
Data of HostFW begins. Amount of bytes is HostFWbytes
 +
 
Data of GCW begins. Amount of bytes is GCFWbytes
 
Data of GCW begins. Amount of bytes is GCFWbytes
 
===File checksum===
 
===File checksum===

Revision as of 14:45, 1 January 2013

Argon firmware file contains embedded software for Argon (servo drive). Firmware file is generated by makefirmware utily.

File format byte by byte

Header

IDString - 4 bytes, always="GDFW"

BLFileVersion - 2 bytes, current=300

TargetDriveType - 2 bytes, Argon=4000, Ion=5000

HostFWbytes - 4 bytes, number of bytes for STM32 CPU

GCFWbytes - 4 bytes, number of bytes for GraniteCore CPU

Data

Data of HostFW begins. Amount of bytes is HostFWbytes

Data of GCW begins. Amount of bytes is GCFWbytes

File checksum

FileCksum - 4 bytes cacluated from the current file. Simply sum of all unsigned bytes in file except CKSum itself