2022-05-05 04:13 AM
Workalot is working on a DfuFileMgr 'look a like' (wdfufm if you will). It is to be embedded within a PC application.
A first run through of 'wdfufm' establishes UM0391, 15-Feb-2007, sec 2.1, page 4 (aka 1st testament) misleads. In particular with the DFUImageSize member of the DFU prefix.
UM0391 states: 'The DFUImageSize field, four byte coded, presents the total DFU file length in bytes'.
Yet, on running DfuFileMgr on a set of input files, the DFUImageSize member is set to a value of 'DFU file length' - sizeof( DFU_SUFFIX );
So, did that fix. But retesting wdfu's output on DfuFileMgr's extraction routine has 'maybe bad or old file format' delivered.
If sec 2.1, page 4 misleads, what other material information is not about.
Workalot