2020-04-24 03:36 AM
Good morning,
I'm working with STM32L4 and I have created my own bootloader.
In order to program the MCU, I use USB interface, so I need the DFU file. I use the 'DFU File Manager' tool to create the DFU file from the HEX file. It works fine, but then, when DFU file is used together with 'Dfuse Demo' application to program the device, I get the following error if the HEX file is not aligned (8bytes multiple): "Matching Not Good. First difference at address...". In order to avoid this, I add some 'empty' code to my code and build it again up to I get an aligned HEX file. Do you know if there is any other tool that could help me with this?
I know there is a DOS-tool called 'HEX2DFU', but it is not working in this case (I suppose because I have my own bootloader, that is required for my application).
Best regards,
Dani
2020-04-24 06:07 AM
HEX2DFU is a Win32 Command Line Tool I wrote
>>I suppose because I have my own bootloader, that is required for my application
Yeah, I don't know, haven't seen the file at issue