Blue Pill Knock offs USB Device Not Recognized Win11

Post Reply
hazardsneon
Posts: 2
Joined: Wed Jul 31, 2024 5:30 pm
Answers: 1

Blue Pill Knock offs USB Device Not Recognized Win11

Post by hazardsneon »

I'm not sure where to start.

I bought 4 Blue Pills (STM32F103C8T6) that, as far as I can remember, didn't have bootloaders. I was able to burn bootloaders on all 4 and they showed up as a Maple Serial COM port in Device Manager.

I went to program Arduino code but had some wrong settings and after the download windows says "USB Device Not Recognized". With the proper settings I was able to program a different one of the 4.

I have been trying to rescue the Blue Pill that says "USB Device Not Recognized" and nothing seems to work. The set of Blue Pills came with a knock off ST-Link V2 that I have been using with the STM32 ST-LINK Utility to download "generic_boot20_pc13.bin". It appears to program successfully:

Code: Select all

13:26:11 : V2J29S7
13:26:11 : Connected via SWD.
13:26:11 : SWD Frequency = 4,0 MHz.
13:26:11 : Connection mode : Normal.
13:26:11 : Device ID:0x410 
13:26:11 : Device flash Size : 64KBytes
13:26:11 : Device family :STM32F10xx Medium-density
13:27:48 : [generic_boot20_pc13.bin] opened successfully.
13:27:48 : [generic_boot20_pc13.bin] checksum : 0x00192077 
13:27:52 : Memory programmed in 1s and 360ms.
13:27:52 : Verification...OK
13:27:52 : Programmed memory Checksum: 0x00192077
However, when I plug in to the USB, windows still says "USB Device Not Recognized".

I have also tried to do the USART uploading as described in the beginning of the following tutorial but it fails at the start and says it can't connect:
https://circuitdigest.com/microcontroll ... g-usb-port

I have tried using the STM32 ST-LINK Utility to fully erase the chip but it didn't fix the problem either.

I have tried swapping the BOOT0 and BOOT1 jumpers but I have read that it doesn't matter for SWD programming and I need to have both BOOT jumpers set to 0 to run.

Does anyone have any ideas of how to rescue my Blue Pill?
by hazardsneon » Wed Aug 07, 2024 5:31 pm
Ok. I have tried everything and I am resolved to the fact that I some how bricked two of these Blue PIll knock offs.

I went and bought some genuine STMicro STM32F103C8T6 from Digikey.

These new parts worked exactly the way they should and I now have all of my Blue Pills working!

Thanks for the help!
Go to full post
GonzoG
Posts: 454
Joined: Wed Jan 15, 2020 11:30 am
Answers: 32
Location: Prudnik, Poland

Re: Blue Pill Knock offs USB Device Not Recognized Win11

Post by GonzoG »

It will show it as unknown device until you flash a program with USB CDC enabled or boot it into maple bootloader (jumer 1 set to 1).
ag123
Posts: 1785
Joined: Thu Dec 19, 2019 5:30 am
Answers: 28

Re: Blue Pill Knock offs USB Device Not Recognized Win11

Post by ag123 »

If you used roger's (libmaple dfu) bootloader, you may need to follow through with the installation for (roger's) libmaple core
https://github.com/rogerclarkmelbourne/ ... stallation

roger's core uses dfu-util for upload
https://dfu-util.sourceforge.net/
if you struggle with the dfu-util and its drivers

get stm32 cube programmer instead
https://www.st.com/en/development-tools ... eprog.html
However, I'm not sure if stm32cube programmer would work with the common DFU (device firmware update), rather it uses its own variant of DFU that accepts an address to install the bin file. i.e. may not be compatible

you can also try like dfu-programmer but I've not used that
https://dfu-programmer.github.io/
hazardsneon
Posts: 2
Joined: Wed Jul 31, 2024 5:30 pm
Answers: 1

Re: Blue Pill Knock offs USB Device Not Recognized Win11

Post by hazardsneon »

Ok. I have tried everything and I am resolved to the fact that I some how bricked two of these Blue PIll knock offs.

I went and bought some genuine STMicro STM32F103C8T6 from Digikey.

These new parts worked exactly the way they should and I now have all of my Blue Pills working!

Thanks for the help!
Post Reply

Return to “STM32F1 based boards”