From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:DfuSe file (.dfu)" |
|---|
| claim | "The 16-byte DFU suffix ends the file: bcdDevice, idProduct, idVendor, bcdDFU (u16 each), 'U','F','D', length 16, then a CRC32." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "DfuSe file (.dfu)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "DFU_suffix" |
|---|
| size | "0x10" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "bcdDevice" |
|---|
|
| offset | "0x2" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "idProduct" |
|---|
|
| offset | "0x4" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "idVendor" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "bcdDFU" |
|---|
|
| offset | "0x8" |
|---|
| size | 3 |
|---|
| type | "char[3]" |
|---|
| name | "ucDfuSignature_UFD" |
|---|
|
| offset | "0xB" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "bLength" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "dwCRC" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Reader checks bytes 10,9,8 = 'D','F','U' (file reads UFD), CRC at 12-15, bcdDFU at 6-7, length at 11 (must be >= 16), ids at 0-5; writer builds the same layout with 'U','F','D' at 8-10." |
|---|
| repo | "https://gitlab.com/dfu-util/dfu-util" |
|---|
| commit | "f9a537c93935d9d536b5ea29b54a226160b2b111" |
|---|
| path | "src/dfu_file.c" |
|---|
| lines | "262-330, 420-447" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T02:17:14.943Z" |
|---|
| verifications | |
|---|