STM32H743 "failed to download Sector[0]" error in DFU download
Hello forum,
i'm working with a custom design where a STM32H743XIH6 is provided on the board along with an USB connection. I'm actually dealing with an issue on USB firmware programming using STM32CubeProgrammer v2.19.0 (up-to-date, but same issue occur with previous versions).
When downloading firmware the following error occurs:
10:34:53 : STM32CubeProgrammer API v2.19.0 | Windows-64Bits
10:34:59 : UR connection mode is defined with the HWrst reset mode
10:34:59 : USB speed : Full Speed (12MBit/s)
10:34:59 : Manuf. ID : STMicroelectronics
10:34:59 : Product ID : DFU in FS Mode
10:34:59 : SN : 200364500000
10:34:59 : DFU protocol: 1.1
10:34:59 : Board : --
10:34:59 : Device ID : 0x0450
10:34:59 : UPLOADING OPTION BYTES DATA ...
10:34:59 : Bank : 0x00
10:34:59 : Address : 0x5200201c
10:34:59 : Size : 308 Bytes
10:34:59 : UPLOADING ...
10:34:59 : Size : 1024 Bytes
10:34:59 : Address : 0x8000000
10:34:59 : Read progress:
10:34:59 : Data read successfully
10:34:59 : Time elapsed during the read operation is: 00:00:00.004
10:35:14 : Opening and parsing file: H7adctest.elf
10:35:14 : Memory Programming ...
10:35:14 : File : H7adctest.elf
10:35:14 : Size : 60.15 KB
10:35:14 : Address : 0x08000000
10:35:14 : Erasing memory corresponding to sector 0:
10:35:14 : Erasing internal memory sector 0
10:35:15 : Erasing memory corresponding to sector 0:
10:35:15 : Not flash Memory : No erase done
10:35:15 : Download in Progress:
10:35:16 : Error: failed to download Sector[0]
10:35:16 : Error: failed to download the File
Error: failed to download the file
Some other test have been given:
- After giving that error, it look like the board start with a fully functioning behaviour
- I can succesfully do a "Full chip erase" in "Erasing & Programming" tab
- I can successfully read the memory
- Same problem occur downloading .elf and .hex file
- Randomly (without making any modifications) I got the same error on "Sector[2]"
- When doing "compare memory with file" i got a "Warning: First difference found at 0x8000000" but, I don't see any difference.
Warning: difference found
Thanks in advance for your support,
Luca

