cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103C6T6 USB Bootloader Flash Issue

Kartik1004
Associate II

I've been previously programming the STM32F103C6T6 blue pill with an FTDI via UART and am now trying to flash a USB bootloader binary to program it directly via USB.
I've closely followed the guide on 
https://www.electrosoftcloud.com/en/stm32f103-bootloader-and-programming/ - I've successfully flashed the generic_bootloader_pc_13.bin file via UART, installed the required drivers, and followed the BOOT0 pattern correctly. On connecting via USB, the board is detected as "Maple DFU" in the Device Manager.

Kartik1004_0-1695959768385.png

But STM32CubeProgrammer keeps showing "No DFU detected" when I try connecting via USB and pressing the refresh button.

Kartik1004_1-1695959829733.png

However, when I enter the PID and VID specified in the Maple DFU driver properties shown below in STM32CubeProgrammer: 

Kartik1004_2-1695959884237.png

On refreshing and trying to connect, the error "unknown or unsupported device" is displayed:
Kartik1004_3-1695959973802.png

I've followed several online resources, and nobody seems to encounter this issue.
Can anyone provide any insights into why this might occur?

16 REPLIES 16
Pavel A.
Evangelist III

But why not USB 3.x?

New USB 3.x hubs sometimes are less tolerable to "not 100% compatible" full speed devices. Depends on the model, of course.

MM..1
Chief II

why you dont choice device with system DFU? List is in AN2606

So you mean that the STM32F10xxx series lacks a USB bootloader as the only bootloader listed on Page 75 is USART1? Other series do have DFU bootloader listed in their bootloader configuration. Seems there's no way to program the device in hand using STM32CubeProg and USB. I need to use this device so FTDI (to flash bin files)/ST-Link (to use STM32Cube since FTDI doesn't support debugging) are probably the only options

Yes as you see DFU is only 105 107

MM1_0-1696143762043.png

but MCUs with USB interface without this in system ROM, can use user coded DFU ... you test it, but not based on BOOT0 pin...

 

Thank you! I'll check if this works for uploading bin/hex files via USB. For debugging in STM32CubeIDE, ST-Link is the only option.

Bro I am also getting same kind of error in device driver window. When i connect STM32f103c6t6 board it is showing 

USB device not recognized. I tried with TTL using cube programmer it is working but via USB it is not working. If you get the solution please share here