Difference between revisions of "Firmware file format (.gdf)"
From Granite Devices Knowledge Wiki
[checked revision] | [checked revision] |
m (Tero K moved page Argon firmware file format to Firmware file format (.gdf)) |
(Tag: VisualEditor) |
||
Line 1: | Line 1: | ||
− | + | GD motor drive firmware file format with file extension .gdf contains embedded software for most of devices based on {{G2.0}} and later. Firmware file is generated by makefirmware utily. | |
==File format byte by byte== | ==File format byte by byte== | ||
All multibyte integers are stored LSB first. | All multibyte integers are stored LSB first. | ||
Line 7: | Line 7: | ||
BLFileVersion - 2 bytes, current=300 | BLFileVersion - 2 bytes, current=300 | ||
− | TargetDriveType - 2 bytes, Argon=4000, Ion= | + | TargetDriveType - 2 bytes, Argon=4000, Ion=14000, Atomi=14000 |
HostFWbytes - 4 bytes, number of bytes for STM32 CPU | HostFWbytes - 4 bytes, number of bytes for STM32 CPU |
Revision as of 13:13, 29 March 2017
GD motor drive firmware file format with file extension .gdf contains embedded software for most of devices based on GraniteCore G2.0 devices (ARGON) and later. Firmware file is generated by makefirmware utily.
File format byte by byte
All multibyte integers are stored LSB first.
Header
IDString - 4 bytes, always="GDFW"
BLFileVersion - 2 bytes, current=300
TargetDriveType - 2 bytes, Argon=4000, Ion=14000, Atomi=14000
HostFWbytes - 4 bytes, number of bytes for STM32 CPU
GCFWbytes - 4 bytes, number of bytes for GraniteCore CPU or 0xffffffff if not included
Data
Data of HostFW begins. Amount of bytes is HostFWbytes
Data of GCFW begins. Amount of bytes is GCFWbytes
File checksum
FileCksum - 4 bytes calculated from the current file. Simply sum of all unsigned bytes in file except CKSum itself