cancel
Showing results for 
Search instead for 
Did you mean: 

Using STM32F072B-Disco as keyboard

rosschm
Associate

I am trying to us my STM32F072B-Disco board as an HID keyboard. I've followed tutorials like this one, (https://www.instructables.com/STM32-As-HID-USB-Keyboard-STM32-Tutorials/) that have gotten the transmission of characters to work, but only partially.

When the code is running on the board, the characters are transmitted, but at a rate much faster than they should be. The characters should be transmitted extremely fast, with no stopping, despite the program transmitting the empty characters that should prevent this.

I think the issue might be in the Clock Configuration, as my board and the boards in all the tutorials have different configurations that might not be interchangeable. I attached a picture of my clock configuration.

Any ideas? Thanks in advance!0693W00000LxVfSQAV.jpg

1 REPLY 1

Hello @rosschm​ 

Welcome to ST Community :smiling_face_with_smiling_eyes:

You can refer to the following example provided under our F0 Firmware Package:

  • Projects\STM32F072B-Discovery\Applications\USB_Device\HID_Standalone

I hope this helps.

BeST Regards,

Walid