A polyphonic-voiced (mono-priority) synthesizer firmware for the RP2350
(specifically the Pimoroni Pico Plus 2 W),
written in no_std Rust on top of Embassy. It runs across both cores: one
core drives USB and audio I/O, the other runs the DSP engine.
It plays from USB-MIDI and BLE-MIDI (it acts as a Bluetooth Central and connects to a
BLE-MIDI keyboard), outputs audio over an I2S DAC at 48 kHz / 16-bit (and simultaneously
streams it over USB Audio (UAC1)), and ships with a 128-preset factory bank stored in
flash. The signal chain per voice is a 3-oscillator voice → ladder filter →
VCA → delay → reverb → stereo widener, built on
infinitedsp-core.
This project is a Rust port/evolution of picoDSP — see Credits.
Only the Pimoroni Pico Plus 2 W is supported.
This is deliberate. The firmware depends on board-specific features of the Pico Plus 2 W:
- the RP2350B MCU (
rp235xb), - the 8 MiB APS6404L PSRAM on QMI CS1 (backs the delay ring buffers), and
- the on-board CYW43 radio for BLE-MIDI.
Other RP2350 boards (including the plain Raspberry Pi Pico 2 / 2 W) are not supported and will not work without changes.
You also need:
- a debug probe (e.g. a Raspberry Pi Debug Probe, or a second Pico running
picotool/CMSIS-DAP) wired to the target's SWD pins, and - an I2S DAC wired to the configured I2S pins for audio output — this firmware is developed against the Pimoroni Pico Audio Pack (PCM5100A). Audio is also streamed over USB (UAC1), so a DAC is optional if you only need the USB audio source.
-
A Rust toolchain (stable) with the Cortex-M target:
rustup target add thumbv8m.main-none-eabihf
-
probe-rsfor flashing and log streaming:cargo install probe-rs-tools
The target and runner are already configured in .cargo/config
(thumbv8m.main-none-eabihf, probe-rs run --chip RP235x), so no extra flags are needed.
With the debug probe connected to the board:
cargo run --releaseThis builds, flashes, and then streams defmt logs over RTT (shown by probe-rs).
Note: MIDI and storage logs go over USB-serial, not RTT — open the USB serial port to see them.
- The CYW43 radio is a separate chip. A soft reset or re-flash toggles its power pin, but it occasionally needs a physical USB power-cycle to clear a wedged state.
- Intermittent slow startup: CYW43
control.initsometimes takes tens of seconds before the host reportsinitialized. This is a known, pre-existing flaky behaviour — not a hang. Wait it out or power-cycle.
tools/midictl is a tiny midir CLI to drive the synth over
USB-MIDI without a DAW. It auto-targets the PicoDSP port. Examples:
cd tools/midictl
cargo run -- pc 12 # load preset 12
cargo run -- note 60 8 # hold middle C for 8 beats
cargo run -- cc 67 127 && cargo run -- cc 67 0 # soft-pedal: cycle to next presetSee tools/midictl/README.md for details.
See AGENTS.md for an in-depth tour of the architecture (dual-core split, audio
path, MIDI/BLE handling, storage, PSRAM, and the locally-patched vendored crates).
The original picoDSP is a USB-only virtual-analog synth for the plain Raspberry Pi Pico 2: USB-MIDI in, audio streamed back over USB Audio (UAC1) (the board appears as a USB microphone — no external DAC), a 3-oscillator → ladder-filter → envelopes voice with delay / reverb / widener effects, dual-core DSP, and SysEx preset storage.
This firmware keeps that DSP core but re-targets the radio-equipped Pimoroni Pico Plus 2 W and adds wireless playing, real hardware audio output, and a much larger preset system. Relevant functional changes:
- BLE-MIDI input. Acts as a Bluetooth Central: scans for, pairs with (LE Legacy JustWorks + bonding), and subscribes to a BLE-MIDI keyboard via the on-board CYW43 radio and a TrouBLE host — play wirelessly with no USB-MIDI cable. The original is USB-MIDI only.
- Stable BLE link tuning. Requests a 15–30 ms connection interval for low MIDI latency, echoes the L2CAP signalling identifier so the keyboard doesn't drop the link every ~30 s, and uses an adaptive cyw43 poll cadence to fix a ~50 s startup stall.
- Held-note safety on disconnect. Silences any held notes if the BLE keyboard disconnects.
- Hardware I2S audio out. Outputs over an I2S DAC at 48 kHz / 16-bit, in addition to still streaming audio over USB (UAC1) — so it works both as a standalone instrument with a DAC and as a USB audio source. The original is USB-audio-only.
- PSRAM-backed delay. The delay ring buffers are backed by the board's 8 MiB APS6404L PSRAM on the QMI bus rather than scarce on-chip SRAM.
- 128-preset factory bank. Expanded preset capacity to 128 (multi-sector flash region) and ships a full 128-preset factory showcase bank, grouped by category.
- Full-bank SysEx transfer. Dump and write the entire 128-preset bank to/from the
picoDSP-Editeditor, de-/re-nibbleized on the fly so the 2×-larger stream never sits in RAM next to the synth. - Live CC control of all DSP parameters from the editor, plus velocity sensitivity and a unified 0..1 resonance control.
- Hands-free preset cycling by tapping CC67 (soft pedal).
- Overclock to 200 MHz (clk_sys 150 → 200 MHz) so the PSRAM runs at 100 MHz, with clock-adaptive flash retiming.
- Fast polynomial sine oscillator replacing the per-sample
libm::sinfin a locally-patchedinfinitedsp-core(~1100 → far fewer cycles), without which sine presets underflowed to silence/noise. - Hot code relocated to SRAM (DSP, BLE/MIDI, cyw43, libm) to keep instruction fetch off the QMI/XIP bus the PSRAM delay shares — the fix for BLE-radio audio clicks.
See
AGENTS.mdfor the engineering detail behind each of these.
This firmware builds on the work of the original authors:
- picoDSP by Na1w — the original project this is based on. All credit for the original design and concept goes to its authors.
infinitedsp-core— the DSP engine powering the synth voice and effects chain.- The Embassy project and the wider Rust embedded ecosystem
(
embassy-rp,cyw43,trouble-host, and more).
If you are an original author and want your credit adjusted, please open an issue.
Licensed under the MIT License.