How to create a DFU file on our own?

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
ndshah88
Posts: 5
Joined: Mon Mar 16, 2020 12:13 pm

How to create a DFU file on our own?

Post by ndshah88 » Mon Mar 16, 2020 12:26 pm

Hello,

Using the make command we are able to create a .hex file but how can we create a .dfu file?

Can you please explain?

Thanks

User avatar
dhylands
Posts: 3385
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: How to create a DFU file on our own?

Post by dhylands » Mon Mar 16, 2020 4:48 pm

If you run make with V=1 then it will show you the commands it uses to create the .dfu file.

User avatar
jimmo
Posts: 1681
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: How to create a DFU file on our own?

Post by jimmo » Mon Mar 16, 2020 10:03 pm

For the ports that support it (i.e. that have a dfu target)

Code: Select all

make build-BOARD/firmware.dfu
Which port are you using?

Look at ports/stm32/Makefile which has a .dfu target if you need to copy this to another port.

ndshah88
Posts: 5
Joined: Mon Mar 16, 2020 12:13 pm

Re: How to create a DFU file on our own?

Post by ndshah88 » Wed Mar 18, 2020 10:17 am

Thank you for the replies guys!

We were able to build the DFU file.

Post Reply