[BUG] STM32CubeProgrammer USB connection to STM32 BOOTLOADER device fails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-28 10:11 AM
Hi,
we're having some issues while trying to connect a STM32F030C6 to the Stm32CubeProgrammer via USB, through the embedded STM32 Bootloader.
Using the same working sample of one of our devices, we perform several connection tests on different Windows 10 PCs, all set up with the following configuration:
- STM32CubeProgrammer V. 2.10
- USB plugged directly in the laptop port
- STM32 drivers properly installed
All the PCs were able to properly detect the device in bootloader mode, showing "STM32 BOOTLOADER" in "Device Manager" and some of them were able to properly connect to the device, allowing us to perform DFU operations.
However, on some PCs, the following warning appeared, and no matter what we tried (flag set on "read unprotected", power cycles..etc), we weren't able to connect to the device:
Strange thing is, on those problematic PCs, if, instead of using the embedded laptop USB port, we connected the device through an external USB HUB, we were able to connect properly.
This issue is causing us some troubles because some of our customers are stuck and cannot perform the FW update of our devices on the field, and tell them "try to use an USB HUB" is a not viable option.
The issue is sistematic and not related to a specific unit of our device, those problematic PCs always failed, even trying with different units.
The root cause could be in the HW/FW design of our devices, or in the STM32CubeProgrammer toolchain, so:
- In case the issue is on our side, do you have any idea of what could cause this phenomenon based on your experience? (e.g. bad HW design, STM32 Bootloader jump not performed correctly by the FW..)
- In case the issue is inside STM32CubeProgrammer toolchain, Is there a way i can help in order to let you further analyze the issue and provide a fix? maybe providing you some log trace that the STM32CubeProgrammer produces on those problematic PCs. From our analysis, it seems that the issue lies inside the DFU_Driver, since even with a custom DFU library we wrote, we got the same result.
Can you please help? thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-07 7:53 PM
I have an FX-4CR with the same problem still today (1/7/2025).. pse advise resolution progress currently have FX 1.7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-07 4:24 AM
We are using the STM32F070CBT and have the same problem. Programming via a USB hub works reliably, while programming directly on a laptop (Dell Precision 7680 laptop, USB3) never works. Please let me know how I can manage the programming without a hub. Does it help to connect a resistor at D+, which is not required for this controller according your application note AN2606 for USB-DFU programming?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-24 6:31 AM
I have a Dell Latitude 5450 with two USB 3.2 Gen 1 ports and cannot update using STM32CubeProgrammer when connected to the ports directly on the laptop. However, when using the a USB hub, the operation works reliably.
Is there an update on this from the STM32CubeProgrammer Team?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-25 1:17 AM
This looks like a Windows bug. Just use a hub and be happy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-25 6:43 AM
Unfortunately, utilizing a USB hub is not option for field updates. Are there any other workarounds that does not require additional equipment?

- « Previous
-
- 1
- 2
- Next »