cancel
Showing results for 
Search instead for 
Did you mean: 

.dfu files do not work after download

MarcoP
Associate

Hi,

I'm using the STM32CubeProgrammer to program an STM105. I connect it via USB (in boot mode) and I can connect successfully. Downloading a .dfu file for the project works as well.

However, after everything is complete and I unplug and reconnect the power, nothing happens. No matter what I try, it just doesn't work.

For another project, I have a .hex file that I have no problems with; it runs right away.

Is there anything I need to do when using a .dfu file to get the STM105 to run the code?

Thanks
Marco

2 REPLIES 2

You don't physically write the .DFU into memory, its an "Object File", an encapsulation that describes content and length.

You connect via USB with the device that presents as "STM32 BOOT LOADER", ie reset with BOOT0 = HIGH

The MCU just executes what's in memory as if it were a vector table and machine code, it doesn't understand .DFU objects.

.HEX files describe lines with an address, and data content to put at that address.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
MarcoP
Associate

OK, I understand, thanks for the explanation.

I only have one .dfu file for the project, how can I use it, is there a possibility?