FAQ
My matrix is row2col, the matrix doesn't work
RMK uses col2row as the default matrix diode direction. To use the row2col matrix, you can add row2col = true under the [matrix] section or [split.central.matrix] section:
If you're using Rust code, set the generics value COL2ROW to false to make the matrix row2col:
Where is my built firmware?
By default, the built firmware is at target/<TARGET>/<MODE> folder, where <TARGET> is your microcontroller's target and <MODE> is debug or release, depending on your build mode.
The firmware's name is your project name in Cargo.toml. It's actually an elf file, but without file extension.
I want hex/bin/uf2 file, how can I get it?
By default, Rust compiler generates elf file in target folder. There're a little extra steps for generating hex, bin or uf2 file.
-
hex/bin: To generatehex/binfile, you need cargo-binutils. You can useto install it. Then, you can use the following command to generate
hexorbinfirmware: -
uf2: RMK provides cargo-make config for all examples to generateuf2file automatically. CheckMakefile.tomlfiles in the example folders. The following command can be used to generate uf2 firmware:
I changed the keymap in keyboard.toml, but the keyboard is not updated
RMK assumes that users change the keymap using vial. So reflashing the firmware won't change the keymap by default. For testing scenarios, RMK provides a config clear_storage under the [storage] section. You can enable it to clear the storage when the keyboard boots.
Note that the storage will be cleared EVERY TIME you reboot the keyboard.
rust-lld: error: section will not fit in region 'FLASH': overflowed by x bytes
This is because your MCU's flash is too small. Try building in release mode: cargo build --release. If the error persists, follow our binary size optimization documentation to reduce your code size.
Unable to find libclang
On Windows machines, you may get the following error when building the firmware:
That's because you don't have LLVM (Clang) installed, or the system doesn't know the path to the installed LLVM (Clang). You can try the solution here: https://rust-lang.github.io/rust-bindgen/requirements.html#windows
Unable to generate bindings: NotExist
On Windows machines, you may get the following error when building the firmware:
To resolve this, you need to enable git symlink on Windows:
I can see an RMK Start log, but nothing else
First, you need to check the RCC config of your board. Make sure that the USB's clock is enabled and set to 48 MHz. For example, if you're using STM32F1, you can set the RCC as follows:
If the keyboard still doesn't work, enable full logging trace in .cargo/config.toml:
run cargo clean and then cargo run --release. Open an issue with the detailed logs.
I see "ERROR: Storage is full" error in the log
By default, RMK uses only 2 sectors of your microcontroller's internal flash. You may get the following error if 2 sectors are not big enough to store all your keymaps:
If you have more sectors available in your internal flash, you can increase num_sectors in [storage] section of your keyboard.toml, or change storage_config in your RmkConfig if you're using Rust API.
OUTDATED: panicked at embassy-executor: task arena is full.
This error occurs only for RMK versions before v0.7.
The current Embassy requires manual setting of the task arena size. By default, RMK sets it to 32768 in all examples:
If you get the ERROR panicked at 'embassy-executor: task arena is full.' error after flashing to your MCU, that means you should increase your Embassy's task arena. Embassy has a series of cargo features to do this; for example, changing the task arena size to 65536:
In the latest git version of Embassy, the task arena size can be calculated automatically, but it requires the nightly version of Rust.
If you're comfortable with nightly Rust, you can enable the nightly feature of embassy-executor and remove the task-arena-size-* feature.
What font is used for the RMK logo?
It's Honk.