2023-10-24 03:22 AM
Hi,
similarly to what happened to others with previous versions of STM32CubeProgrammer, an error occurs when I proceed to download the firmware via USB connection:
Error: Write failed at address: 0x800…. (address is not always the same)
Error: failed to download Segment[0]
Error: failed to download the File
The error in log file is:
libusb control transfer error [-9] : LIBUSB_ERROR_PIPE
Even the initial connection via USB does not work correctly, as not all information is always read correctly (The initial connection fails if I use version 2.10.0 of STM32CubeProgrammer).
Similarly to what others have found, everything works correctly if the connection is made through a USB 3.0 hub. Also, everything works fine if I use DfuSeDemo software, so the problem seems to be related to the STM32 BOOTLOADER driver used by STM32CubeProgrammer.
The specs of my system are
microcontroller STM32F072RBT6
firmware version: 0x011a
device id: 0x0448
operating system: Windows 10 Pro 64 bit version 22H2
USB 3.0
Does anyone have any helpful suggestions?
Thanks!
2023-11-01 02:06 AM
Hi,
I cannot offer a solution but I confirm that there is an issue with the bootloader/STM32 Cube Programmer.
My post regarding the same subject was: https://community.st.com/t5/stm32cubeprogrammer-mcus/stm32cubeprogrammer-dfu-instable/m-p/599084#M5397
I noticed a PC dependent behavior. Using the same boards, on some machines the error always occurs, on others never. As the author of this thread mentioned, it always works with DfuSeDemo.
Regards
Jan
2023-11-01 02:11 AM
The ST USB implementation is not particularly tolerant of USB Hubs or Docking Stations, perhaps how the firmware and drivers react to errors, retries or delays in the communication path.
Always found direct connectivity work best on Win7 boxes.
2023-11-04 04:21 AM
Thanks for your reply,
actually, this problem initially occurred in Windows 7, after which it was confirmed by moving to Windows 10
Regards
2023-11-04 04:25 AM
Thanks for your reply and your post,
regards.
2024-02-06 12:46 AM
2024-08-28 04:56 AM
I have the same problem with DFU mode.
I use Cube Programmer version 2.17.0 and uC STM32F765.
Adding a USB hub or a docking station between uC and the PC, the download is always properly done.
I don't know the reason, but I suppose because they introduce delay in the communication.... :face_with_rolling_eyes:
I hope I was helpful to temporarily solving your problem.