Skip to main content
Visitor II
February 11, 2020
Question

HEX to DFU without files in C#?

  • February 11, 2020
  • 1 reply
  • 704 views

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

    This topic has been closed for replies.

    1 reply

    Graduate
    March 31, 2020

    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