This is the home of the firmware for my Dove Mechanical Keyboard. It uses TMK for the keyboard & USB HID, and ChibiOS as the HAL for STM32F407. This project uses a slightly different organization as described in the tmk documentation. The differences are
- It uses a Makefile derived from a ChibiOs example rather than the one used in
tmk/tmk_core/tool/chibios.mk
, - It is based on a ChibiOS demo, so it can be used from within ChibiStudio for debugging.
Incase you're interested in building (or tinkering with) the Dove Keyboard, you can find the CAD model in the dove_keyboard_hw repo.
- Download and install ChibiStudio
- Create a folder that will serve as the workspace for Chibios studio. Lets assume this is is
dove_keyboard_wspace
- Clone ChibiOS git repo, and checkout the
stable_20.3
branch.
git clone https://github.com/ChibiOS/ChibiOS
cd ChibiOS
git checkout --track origin/stable_20.3
- Clone this repo in the
dove_keyboard_wspace
. - Your
dove_keyboard_wspace
folder should now have two folders in it
ChibiOS -- checked out to branch 20.3
dove_keyboard_fw
- Run ChibiStudio (making sure to select gcc90 launcher)
- Open the workspace
dove_keyboard_wspace
as a workspace within ChibiStudio - Import ChibiOs as an 'existing project' by selecting File > Import > Existing Projects into Workspace. I recommend unchecking 'Search for nested projects' to avoid littering your workspace with all the demo projects that ChibiOS comes with.
- Import
dove_keyboard_fw
as an existing project using the same steps as above. - You can build, debug, flash, etc on your STM32F407 board as described in this excellent tutorial on Using ChibiStudio at playembeddded