This is a simple project written for an STM32F411 Black Pill board. It uses the USB HID protocol to send keystrokes to a computer, using STM32 HAL library.
-
Install STM32Cube Programmer: https://www.st.com/en/development-tools/stm32cubeprog.html
-
Install the ARM GCC toolchain: https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
-
Build the project using the make file:
make all
-
Connect the STM32F411 board to your computer using an ST-Link programmer.
-
Flash the board using the make file:
/path/to/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=SWD -w build/keyboard.bin 0x8000000
-
Connect the USB port of the board to your computer. The board should now be recognized as a keyboard by your computer. You may have to reset the board after flashing it.
- The board is connected to a computer using the USB port.
- You are using a standard English keyboard layout.
- You are running Windows or Ubuntu.
- You have Google Chrome installed and set up with at least two profiles.