This is a keyboard firmware for the Cantor keyboard based on keyberon.
Install the rust toolchain
curl https://sh.rustup.rs -sSf | sh
rustup target add thumbv7em-none-eabihf
rustup component add llvm-tools-preview
cargo install cargo-binutils
cargo install flip-link
Compile the firmware for the left half with
cargo objcopy --release -- -O binary keyberon.bin
and for the right half with
cargo objcopy --features right_half --release -- -O binary keyberon.bin
Put the developement board in DFU mode by pushing reset while pushing boot, and then release boot. Then flash it:
dfu-util -a 0 --dfuse-address 0x08000000 -D keyberon.bin
Ensure that the debugging probe (e.g. STLink V2) has user access rights (see https://embedded-trainings.ferrous-systems.com/installation.html#linux-only-usb)
cargo install probe-run
cargo install probe-rs-cli
Running the program with log output:
DEFMT_LOG=info cargo run
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.