cancel
Showing results for 
Search instead for 
Did you mean: 

HEX to DFU without files in C#?

DVoro.1
Associate

Hi everyone,

I'm working on an app to configure an STM32 based DFU device and I don't want to deal with the file system. Everything works now except one step, going from Intel HEX to a DFU image directly so I can write it to the device. The ST DFU image library seems to be only for reading and writing files. I found an implementation of generating a DFU file from HEX in C but before I dive into converting C manipulations of char*s, I thought I'd ask if anyone has already implemented what I am looking for in C#?

Thanks,

Dmitry

1 REPLY 1
HAlzo
Senior

Hi Dmitry,

within the install package for DFU from ST , you can find a directory called source, which includes the source code in C++.

on the other hand you can find here a python implementation

https://github.com/thomask77/nucular-keyboard/blob/master/Tools/hex2dfu/hex2dfu.py

May you share the C implementation you found.

Best Regards

Hossam Alzomor