2024-07-30 04:28 PM - edited 2024-07-30 04:31 PM
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
2024-07-30 05:11 PM
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.
2024-07-31 01:50 AM
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?