cancel
Showing results for 
Search instead for 
Did you mean: 

How make USB HID work on BluePill (STM32F103C8T6)

AChyt.1
Associate

Hi friends,

I am trying to make me USB HID work on STM32 blue pill (STM32F103C8T6).

I generated project from STM32CubeMX, Device should be connected like mouse device ,but after i connected blue pill to pc, it showed error message. In device manager->state of device was error state "A request for the USB device descriptor failed."

I have three Blue pill modules and all of them have same problem. I tried add 1K8 ohm rezistor between pins PA12 and 3,3. This modules have problem with wrong value of rezistor R10, but that didnt help. Did somebody have same problem.

0690X00000D85WFQAZ.png

 0690X00000D85WyQAJ.png

What causes this problem?

1 REPLY 1
AChyt.1
Associate

Okay, maybe I found a reason why USB doesn't work. Looks like the blue pill I bought was with a fake STM32F103C8T6 or a copy. I bought a new blue pill from another seller and this new one worked on first try.