← All projects
Project record1 mention
Originally shared on Hacker News

Rust microkernel for RP2350

A Rust-written microkernel for ARM-M33 microcontrollers, targeting the RP2350 first. It uses a synchronous IPC model where the inter-task call graph is known at compilation, with function-call semantics (call/receive/reply) for passing data between tasks. A TOML-based build tool generates the kernel calls so tasks are totally isolated, with all calls going through supervisor traps for true memory isolation. Preemption is possible but control is yielded only at IPC boundaries, so it is not hard realtime. The design trades increased flash usage, a constrained programming model, a complex build system, and task-switching overhead for compile-time auditable behavior and crash isolation between tasks.

Last shared
01 / The problem

What it addresses

Exploring what happens when building for full safety: super-robust, auditable-at-compile-time behavior where total task isolation means tasks can crash catastrophically without affecting the rest of the system, and what a different model for multitasking looks like.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Rust microkernel for RP2350

    A Rust-written microkernel for ARM-M33 microcontrollers, targeting the RP2350 first. It uses a synchronous IPC model where the inter-task call graph is known at compilation, with function-call semantics (call/receive/reply) for passing data between tasks. A TOML-based build tool generates the kernel calls so tasks are totally isolated, with all calls going through supervisor traps for true memory isolation. Preemption is possible but control is yielded only at IPC boundaries, so it is not hard realtime. The design trades increased flash usage, a constrained programming model, a complex build system, and task-switching overhead for compile-time auditable behavior and crash isolation between tasks.

    Problem: Exploring what happens when building for full safety: super-robust, auditable-at-compile-time behavior where total task isolation means tasks can crash catastrophically without affecting the rest of the system, and what a different model for multitasking looks like.

    Posted by @mlsu · Original source ↗

    Source text · @mlsu · · Source ↗

    I am working on a microkernel for arm-m33 microcontrollers. Targeting the RP2350 first. It’s going to feature a synchronous IPC model where the inter-task ‘call graph’ is known at compilation. Function call semantics to pass data between tasks. Call() recieve() reply()