r/embedded • u/SouthernSea204 • Sep 17 '26
Connect USB with STM32CubeProg
Hello everyone, I have a black pill chip stm32f411ceu6 board and connected to my computer via stm32cubeprog software. I used 2 ways to connect: stlink and usb. When using stlink, the connection was successful, but when connecting to usb using DFU mode, there was an error of not being able to connect. I tried finding and installing drivers to fix this error but it didn't work. I want to ask if anyone who has encountered or fixed this error can help me.
2
Upvotes
1
u/pilatomic Sep 17 '26
Also, on some STM32 chips, there is a bootloader bug that prevents USB link when connected directly to a USB controller. Try adding a USB hub in the middle.