[BluePill] USB Keyboard example doesn't work

Post here first, or if you can't find a relevant section!
Post Reply
kurtzweber
Posts: 1
Joined: Sun Mar 09, 2025 4:48 pm

[BluePill] USB Keyboard example doesn't work

Post by kurtzweber »

Hi

I'm trying to make the USB Keyboard example work with a BluePill board but I'm facing some issues.

First of all, I'm not using any bootloaders (I read that they can cause some issues in this scenario), I'm uploading the sketch using a serial adapter connected to pin A9 and A10 and "STM32CubeProgrammer (serial)" as programmer.

I also enabled "HID Keyboard and mouse" in the USB support menu.

The "KeyboardMessage.ino" sketch compiles and uploads to the board, but when I connect the board to my laptop, only a "STM Serial" device appears (with a yellow question mark):

Image

Can you help?

An additional question: my project should act as a USB gamepad... is there a library to implement such a HID device or am I forced at the moment to stay with keyboard or mouse?

Thanks!
Post Reply

Return to “General discussion”