2025-05-13 8:24 AM
I've been working on my own code for using USB DFU with our device and it is failing with the downloadFile call. I decided to test with the CLT (command line tools) and am seeing similar results. If I tell STM32_Programmer_CLI.exe to use the STLINK-V3SET with my hex file, it pushes the file without issue:
However, if I put the device into USB DFU mode, it fails as such:
This failure output is the same failure output I get when running STM32CubePrgAPI - USB_Example, as well as when I run my own application. The HEX file being used is the same in all instances. I've also tried using the corresponding ELF file. The device is an STM32H747XI and should load code at 0x08000000 as shown. I do however have a modified linker file that defines a NOINIT section at the top of the DTCM block, as well as some data that is shared between the CM4 and CM7 cores in the top of the RAM D3 block. Could these be the source of the errors when trying to use USB DFU?
Thanks,
C-Coder