Editing Firmware file format (.gdf)
Your changes will be displayed to readers once an authorized user accepts them. (help) |
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 29: | Line 29: | ||
* ---------------------- | * ---------------------- | ||
* | * | ||
− | * Note: GDF v400 is not limited to firmware files any more, | + | * Note: GDF v400 is not limited to firmware files any more, |
* it can be used as general purpose data container for up to 4GB data chunks. | * it can be used as general purpose data container for up to 4GB data chunks. | ||
* | * | ||
Line 40: | Line 40: | ||
* 2 GDF version = 400 | * 2 GDF version = 400 | ||
* 2 GDF backwards compatible version = 400 | * 2 GDF backwards compatible version = 400 | ||
− | |||
* 4 number of data chunks in file = N | * 4 number of data chunks in file = N | ||
* | * | ||
Line 53: | Line 52: | ||
* | * | ||
* 4 file's CRC-32 | * 4 file's CRC-32 | ||
− | * | + | */ |
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | /* | ||
* data chunk types | * data chunk types | ||
* ---------------- | * ---------------- | ||
Line 65: | Line 68: | ||
* 7=disclaimer, UTF8 | * 7=disclaimer, UTF8 | ||
* 8=circulation, UTF8 (i.e. customer name) | * 8=circulation, UTF8 (i.e. customer name) | ||
− | * 20=unix timestamp | + | * 20=unix timestamp, S=4 |
− | * 50=target device type ID | + | * 50=target device type ID and mask, S=8 |
− | * first 4 bytes are | + | * first 4 bytes are target device ID, i.e. 11000=IONI |
− | * second 4 bytes are | + | * second 4 bytes are mask/divider for type comparison, must be >0 |
+ | * file is compatible if following eq is true: floor(readID/divider) == floor(targetID/divider) | ||
* 100=main MCU FW binary, S=any | * 100=main MCU FW binary, S=any | ||
− | * 101=main MCU FW unique identifier number | + | * 101=main MCU FW unique identifier number, S=4 |
* 102=main MCU FW required HW feature bits, S=4 | * 102=main MCU FW required HW feature bits, S=4 | ||
* helps to determine whether FW works on target | * helps to determine whether FW works on target | ||
Line 84: | Line 88: | ||
* bits 1-31: reserved | * bits 1-31: reserved | ||
* | * | ||
− | */</pre> | + | */ |
+ | </pre> | ||
For practical reading software implementation, see devicedeployment.c from SimpleMotion library. | For practical reading software implementation, see devicedeployment.c from SimpleMotion library. | ||
− | |||
− | |||
− | |||
− |