Skip to content
altstrument

fm1-rust

Tool for FM-1 (M-VAVE)

Bare-metal Rust board support crate for the FM-1 on embedded-hal 1.0, with no allocator and example firmwares: a blinking LED, colour test cards and a square-wave tone, plus companion crates for audio, front-panel input, text and waveform drawing and an RTICX task runtime.

by FM-1 Rust Developers

ActiveSource: openMIT
M-VAVE FM-1 FM synthesizer, top view
Photo: M-VAVE, manufacturer product image, via m-vave.com
Distribution
Build from source yourself
Requires stock
M-Bootloader installed
License notes
The repository and the fm1 crate are MIT. The README says the startup assembly, linker layout and pi32v2 target come from Julius Vitkauskas's MIT-0 example, and that the optional audio module ports an MPL-2.0 driver by Leo Kuroshita and Kerem Kilic.
Source
github.com https://github.com/fm1-rust/fm1-rust

Description

The fm1 crate runs on the first core of the JieLi AC791N chip. A function passed to the entry macro receives exclusive ownership of the board: the PLAY LED and button, the switch and LED matrix, the 240 by 240 screen, a cycle counter with a delay timer, the headphone jack switch and, behind a feature, stereo audio output to the DAC. Releases since 0.2 add flash storage for patches and MIDI sequences, TRS MIDI input and low-battery and charger status, and 0.2.1 adds stereo USB audio capture next to MIDI and watchdog and reset control. The README says the blink, display and tone examples were observed on an FM-1 running M-Bootloader. It builds on Julius Vitkauskas's Rust blink proof of concept from pi32v2-isa. Firmware builds need a patched Rust compiler, the pi32v2 LLVM tools and pi32v2-isa's packager, while host tests run on stable Rust.

Install notes

Build an example with fm1/scripts/build-example.sh, then hold REC while powering on an FM-1 that has M-Bootloader to enter USB download mode and flash the .fwsc with M-Flasher after taking a backup. The README says the package updates the application area and keeps the bootloader, and that holding PLAY for two seconds returns to download mode.

Version history

fm1-rust version history
VersionDateNotes
fm1/v0.2.12026-11-26
Git tag; no GitHub release page. It is the fm1 crate's 0.2.1, which adds stereo USB audio capture alongside MIDI and a Power type for watchdog control, reboot and reset reporting; fm1-rticx has a matching 0.2.1 tag.
main @ d482ba32026-11-26
Latest commit, 18 commits after the fm1/v0.2.0 tag. Since the tag the crate adds flash storage for patches and MIDI sequences (with CPU1 parked in SRAM while flash is written), low-battery detection and on-chip charger status, and TRS MIDI input with optional midly decoding.
main @ 655a3e42026-11-25
Latest commit, which fixes badges in the fm1-cli README. Since the previous row the commits release 0.2.0 of fm1, fm1-audio, fm1-controls, fm1-graphics, fm1-rticx, fm1-usb, fm1-cli, fm1-assets and rticx-pi32v2 (with fm1-audio 0.2.1), add an optional embedded-graphics integration, an fm1-assets crate, an opt-in DMA copy path for USB MIDI and DSP-accelerated PCM16 and Q23 block mixing.
fm1/v0.2.02026-11-24
Git tag; no GitHub release page. It is the fm1 crate's 0.2.0, after release candidates rc.0 to rc.2; the other crates (fm1-audio, fm1-controls, fm1-graphics, fm1-rticx, fm1-usb, fm1-cli, fm1-assets, rticx-pi32v2) carry their own 0.2.0 tags, which this entry does not list separately.
main @ 44036b32026-11-24
Latest commit, which tightens how rticx-pi32v2-macro shares locks. Since the previous row the commits make USB MIDI startup safe by default, add AsyncDisplay::fill_rect for solid fills, opt-in CPU1 boot and audio probes and fm1-audio changes, and tag 0.2.0 release candidates of fm1, fm1-audio, fm1-rticx and rticx-pi32v2; several are marked as breaking changes.
main @ df583bc2026-11-23
Latest commit, which replaces the async channel that rticx-pi32v2 re-exports. Since the previous row the commits add fm1-usb and fm1-cli for host-side USB MIDI, guard against a USB receive DMA overrun, qualify MIDI activation, tighten rticx-pi32v2's task handoffs and dispatcher, and require documented unsafe operations; several are marked as breaking changes.
main @ 5227c962026-11-22
Latest commit, which adds an on-device timing diagnostic to fm1-rticx. The commits since the previous row release rticx-pi32v2 0.1.2, fm1 0.1.3, fm1-controls 0.1.1 and fm1-rticx 0.1.1, switch the channels to rtic-sync, add optional debug logging over USB MIDI, fix a USB interrupt waker and DMA buffer layout, and add the fm1-audio, fm1-controls, fm1-graphics and fm1-rticx crates, interrupt-driven USB MIDI and display transfers, a piano keyboard diagnostic and a waveform scope example, and an optional ST7789 embedded-graphics driver.
fm1/v0.1.32026-11-21
Git tag; no GitHub release page. Another fm1 crate version, tagged the same day as 0.1.2.
fm1/v0.1.22026-11-21
Git tag; no GitHub release page. It is the fm1 crate's version; rticx-pi32v2 and rticx-pi32v2-macro have their own 0.1.0 and 0.1.1 tags.
main @ ad37e0a2026-11-20
Git commit; the first implementation, which adds the board support and the three examples.

Back to FM-1