cancel
Showing results for 
Search instead for 
Did you mean: 

Command line Hex to DFU

Nickname13661_O
Associate
Posted on May 30, 2011 at 10:46

Does anyone know of a way to create a DFU file from the Windows Command prompt. I need to automate the generation of the DFU file from within a Makefile.

Thanks

Cosma

#makefile #command-prompt #dfu
4 REPLIES 4
stforum.tormod9
Associate II
Posted on June 07, 2011 at 13:57

There is a python script to convert binary files to DFU files here

http://www.seeedstudio.com/forum/viewtopic.php?p=4504#p4504

I don't know what is the easiest way of converting from hex to binary on Windows, but maybe you can run the Unix tool objcopy under cygwin.

Tormod

arro239
Associate III
Posted on February 06, 2015 at 15:06

It's an old topic but it's Googles favorite so.

I am confused with what manipulations are needed in order to convert a .hex/.bin into a .dfu

Can I use arm-none-eabi-objcopy.exe and if yes, with which parameters?

Do I need dfu-prefix or dfu-suffix tools?

In my case it's about stm32f407
Posted on July 19, 2017 at 23:42

https://community.st.com/0D50X00009XkeovSAB

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
STOne-32
ST Employee
Posted on July 20, 2017 at 20:21

Hi Comsa,

we provide full sources code in Visual C++ for the GUI version. You can create your own command line version.

Cheers,

STOne-32.