Skip to content
MCU Atlas

RMK: Rust keyboard firmware for your first custom keyboard

RMK turns a Pi Pico or nRF52840 board into a keyboard from one keyboard.toml file — Rust firmware where you write no Rust and no C.

Difficulty:BeginnerSource available

What it is

Keyboard firmware written in Rust and configured entirely from one keyboard.toml file — chip, matrix, layout and every layer — with no keyboard code for you to write. Runs on RP2040 (Pi Pico), nRF52, STM32 and ESP32.

What you need

How hard

Beginner for the firmware (our editorial call): you edit a readable TOML file and run cargo — no Rust, no C to write. The invisible weight is the toolchain: a few hundred crates on first build and a C compiler quietly required on the host.

Key Facts

  • Keyboard firmware written in Rust and configured entirely from a single keyboard.toml — "a TOML configuration file, requiring no Rust programming knowledge" (project docs); the whole Rust program the official template generates is a four-line macro
  • Built on the embassy async runtime; covers STM32, nRF, RP2040 and ESP32 chips, with per-chip templates in the official rmk-template
  • We verified it hands-on: the official template built green with Rust 1.100.0 on 2026-11-21 — 1m48s cold build, 252 crates, and a spec-valid RP2040 UF2 image we byte-checked. Artifact verified; we did not flash a live board
  • BLE with automatic reconnection and multi-device pairing; the project reports testing on nRF52840, nRF54L15, nRF54LM20, ESP32-C3/C6/H2/S3 and Pi Pico W — the plain Pico has no radio
  • Live keymap editing through Vial or the experimental Rynk protocol, including wirelessly over BLE; split keyboards via per-chip templates (serial split from TOML is RP2040-only — others need the Rust API)
  • Maker-reported performance: roughly 2 ms wired and 10 ms wireless latency, months of battery from a 2000 mAh pack — their figures, not our measurements
  • Dual-licensed Apache-2.0 OR MIT (both license files verified); free and open source
  • Easiest hardware path: a Raspberry Pi Pico and a USB cable — flash by holding BOOTSEL, no debug probe
Two panels: the rmk-template keyboard.toml — chip rp2040, matrix pins, 4x3 layout, 3 keymap layers — and the 12-key layout it defines, with the coral OSL(1) layer-switch key at bottom left. Adapted from the official rmk-template (Apache-2.0/MIT).
The rmk-template keyboard.toml — chip, matrix pins, 4×3 layout, three layers — and the 12-key macropad it defines, with the coral layer-switch key at bottom left. Adapted from the official rmk-template (Apache-2.0/MIT); original MCU Atlas figure. (MCU Atlas)

About This Project

RMK's own tagline is "A modern, easy-to-use, and feature-rich keyboard firmware written in Rust" — and the unusual part is what's missing: there is no keyboard code for you to write. Everything a build needs — chip, matrix pins, layout, every keymap layer — lives in a single keyboard.toml file. The project's configuration docs promise "a TOML configuration file, requiring no Rust programming knowledge", and the official template backs that up: the entire Rust program it generates is a four-line macro. You edit TOML, run cargo build, and get keyboard firmware. When we built that template ourselves, it was the friendliest first-custom-keyboard workflow we've used: from zero to a valid Raspberry Pi Pico firmware image in one command and under two minutes, without writing a line of Rust or C.

Why it matters

QMK and ZMK are the incumbents, and both are excellent — but both ask a newcomer to absorb a build system, a C (or devicetree) configuration culture, and a large ecosystem before the first keypress. RMK compresses the first-custom-keyboard or macropad path to two skills: edit a readable TOML file and run cargo. It is built on the embassy async embedded runtime and covers STM32, nRF, RP2040 and ESP32 chips. That makes it a gentle on-ramp for a DIY macropad on a Raspberry Pi Pico, or for a wireless build on an nRF52840 board like the one our nrfmicro page covers — nrfmicro hardware plus RMK firmware is the natural wireless pair.

Key features

Everything lives in the one keyboard.toml: chip, matrix pins, layout and every layer, with a Rust API available for anyone who wants deeper control. The keymap syntax is QMK-like — MO(1), LT(2, Kc9) — so a beginner arriving from QMK is at home, and a total newcomer needs only the keycodes doc page. Keymaps can be modified live through Vial, or RMK's own experimental Rynk protocol, even wirelessly over a BLE connection. For wireless builds, BLE comes with automatic reconnection and multi-device pairing; the project reports testing on nRF52840, nRF54L15, nRF54LM20, ESP32-C3/C6/H2/S3 and Pi Pico W — note the plain Pico has no radio, so wireless needs a Pico W. Split keyboards are supported too, with per-chip split templates in the official rmk-template; one honest limit: a serial split configured from TOML is generated for RP2040 only, other chips need the Rust API. Performance figures — roughly 2 ms wired and 10 ms wireless latency, and months of battery from a 2000 mAh pack — are the project's own claims, not our measurements.

What we verified, and what we only read

We built the official rmk-template's rp2040 (Pi Pico) configuration with Rust 1.100.0 on 2026-11-21, changing nothing in keyboard.toml but the project name. cargo build --release completed green in 1m48s cold, compiling 252 crates, and produced a spec-valid RP2040 UF2 image — we byte-checked the family ID and flash base address — so the drag-and-drop BOOTSEL flash path is real, though we verified the artifact, not a live board (no Pico on the bench that day). Two honest catches: writing no C of your own still requires a C compiler on the host — a build dependency quietly compiles some bundled C — and the rmkit init setup wizard assumes a human at the terminal. The wireless, split and Vial-over-BLE features are documented with per-chip templates, but that is documentation we read, not hardware we ran.

Getting started

Install the tooling with cargo install rmkit flip-link, run rmkit init, edit your keyboard.toml, and build with cargo build --release. On a Pi Pico you can flash without any debug probe: hold BOOTSEL while plugging in, and the board appears as a USB drive you drop the UF2 file onto (elf2uf2-rs automates this). The first build is the heavy part — it pulls a few hundred crates, well over a gigabyte — after that, rebuilds are instant. The full user guide lives at rmk.rs.

License and repo facts

RMK is dual-licensed under Apache-2.0 or MIT, at your option — verified from both license files in the repository, © HaoboGu 2024. Source and issue tracker live at the rmk-rs organization on GitHub, API documentation on docs.rs, and the user documentation, configuration reference and roadmap on rmk.rs. Not affiliated: RMK is an independent open-source project; QMK, ZMK, Vial and Raspberry Pi belong to their owners.

Source & Attribution

Source: GitHub
License: Apache-2.0 OR MIT
RMK: Rust keyboard firmware for your first custom keyboard

Illustration

How to Build It

Install the Rust toolchain and rmkit, generate a firmware from the official template, describe your keyboard in one keyboard.toml file, build it, and flash a Pi Pico over BOOTSEL with no debug probe. No Rust or C to write.

Parts Needed

Steps

  1. 1

    Install the toolchain and rmkit

    Install Rust with rustup if you haven't, then install the project's tooling with the documented one-liner: cargo install rmkit flip-link.

  2. 2

    Create your firmware

    Run rmkit init. The interactive wizard asks for your chip — rp2040 for a Pi Pico — and copies the matching official template. Script and CI users beware: the wizard assumes a human at the terminal.

  3. 3

    Describe your keyboard in keyboard.toml

    One readable file holds everything: chip, matrix pins, layout and every keymap layer. The keymap syntax is QMK-like — MO(1) for a momentary layer, LT(2, Kc9) for a tap-and-hold — so QMK veterans are at home and newcomers need only the keycodes doc page.

    Two panels: the rmk-template keyboard.toml — chip rp2040, matrix pins, 4x3 layout, 3 keymap layers — and the 12-key layout it defines, with the coral OSL(1) layer-switch key at bottom left.
    The template's keyboard.toml and the 12-key macropad it defines. Adapted from the official rmk-template (Apache-2.0/MIT); original MCU Atlas figure.
  4. 4

    Build

    Run cargo build --release. The first build pulls a few hundred crates — well over a gigabyte — and quietly requires a C compiler on the host for a build dependency; our cold build finished green in 1m48s with 252 crates compiled (Rust 1.100.0, 2026-11-21). Rebuilds after that are instant.

  5. 5

    Flash a Pi Pico with no debug probe

    Hold BOOTSEL while plugging the Pico in: it appears as a USB drive, and you drop the UF2 file onto it. elf2uf2-rs automates the whole step (runner = elf2uf2-rs -d in .cargo/config.toml). We verified this path on the artifact — a spec-valid RP2040 UF2 we byte-checked — not on a live board.

  6. 6

    Tune it live and go further

    Edit your keymap at runtime with Vial — even wirelessly over BLE on supported boards. For wireless chips and split keyboards, the rmk-template ships per-chip starting points, and rmk.rs holds the full configuration reference and roadmap.

Bill of Materials

Parts list

3 parts · 2 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

1× Raspberry Pi Pico (RP2040)

The wired starter path and the board our verification build targeted; flash over BOOTSEL with no debug probe

1× nice!nano v2 / nrfmicro (nRF52840 Pro Micro)

The wireless path: RMK's BLE with auto-reconnection is tested on nRF52840 (project's tested list)

No verified link — check the original project

1× USB data cable

Any USB data cable for the one-time flash

Not included: A Rust toolchain (rustup) plus a host C compiler — a build dependency quietly compiles bundled C, Switches, keycaps and a keyboard matrix — RMK is the firmware; the hardware is your build, No debug probe needed on a Pi Pico (BOOTSEL drag-and-drop flashing)

Download CSV

Related Projects

nrfmicro: nRF52840 Pro Micro drop-in for wireless keyboards
Illustration
NRF52NRF52840
nrfmicro is a Pro Micro-shaped nRF52840 board for building wireless keyboards: drop it into a QMK or ZMK build and cut the USB cable for good.
Intermediate·Code
2 parts listed
Macropad Hotkeys II: CircuitPython macros for Adafruit MacroPad
Illustration
RASPBERRY PI PICORP2040
Macropad Hotkeys II is extensible CircuitPython firmware for the Adafruit MacroPad, with ready-made profiles for Blender, DaVinci Resolve, MIDI and more.
Beginner·Code
1 part listed
LVGL watch UI for the ESP32-C3 1.28in round display
Illustration
ESP32ESP32-C3
A polished smartwatch-style LVGL interface for the cheap ESP32-2424S012 round touchscreen board, paired via the Chronos app.
Beginner·Code
1 part listed