Wadley Moise | Embedded & Systems Engineering
wm. Wadley Moise
OPEN TO EMBEDDED / SYSTEMS ROLES GITHUB ↗ LINKEDIN ↗

EMBEDDED SYSTEMS · BARE-METAL SOFTWARE · CS & DATA SCIENCE STUDENT

Close to the metal.
Built to go further.

I write real-time kernels, hardware tooling, and the systems underneath — directly against the silicon, with no HAL between me and the registers. Currently: Fleurr-OS, a from-scratch RTOS kernel for Cortex-M7 and AVR.

01 — FLAGSHIP FLEURR-OS · RTOS KERNEL Core kernel complete 2 items open

A bare-metal preemptive RTOS kernel, written from scratch for two architectures.

Built first on the ATmega328P, then ported and significantly expanded onto a NUCLEO-F767ZI (STM32, Cortex-M7). Drivers and kernel are written directly against the hardware — no HAL, no Arduino libraries. One kernel, two port_* layers, selected at build time.

O(1)Ready-task selection
32Priority levels
2Architecture ports
0HAL dependencies
ARCHITECTURE EXPLORER CLICK A SUBSYSTEM · SWITCH TARGET
{{ autoLabel }}
P31Task A · nextTask B
P16Task Cempty
P00Idleempty
bitmap1000 0000 0000 0001 0000 0000 0000 0001clz → 0 → P31
KERNEL · TCBs · STACKS · DTCMPRIVILEGED ONLY
ACTIVE TASK STACK ← MPU regionUNPRIV R/W
OTHER TASK STACKSNO ACCESS
SVC → CONTROL.nPRIVONLY WAY UP
ATmega328P · 2 KB SRAMAVR PORT
SHARED KERNEL API · OPAQUE HANDLESSAME CODE
HARDWARE MPUNOT PRESENT
SysTick→PendSV→save r4–r11
pick next→reprogram MPU→EXC_RETURN · PSP
TIMER1_COMPA→push r0–r31 · SREG→save SP → TCB
load next SP→pop frame→RETI
mutexowner: T_low ↑P31wait: T_hi(P31) → T_mid(P16)
semaphorecount: 0signal → hand-off to T_hi
queuering[8] · item 12Bproducers ⇄ consumers

{{ panelTitle }}

{{ panelBody }}

{{ progressBar }}
Port boundary & build

Public API exposes opaque task_handle_t, mutex_handle_t… backed by structs in internal headers only. Context switch, timer, and interrupt control live behind port_* under arch/avr/atmega328p/ and arch/cortex_m7/nucleo_f767zi/.

make TARGET=avr|cortex_m7. A dedicated sleep list wakes delayed tasks back onto the ready queue when their tick count elapses.

Priority inheritance, done right

Mutex wait lists are priority-ordered. A task holding several mutexes gets its priority recomputed on each unlock as the max of its base priority and any remaining boosts — never a flat reset. Protocol is selectable per mutex.

Priority ceiling protocol is designed into the interface but not implemented.

Still open 2

Timeouts on blocking calls. Mutex, semaphore, and queue waits currently block indefinitely.

Kernel helpers through SVC. SVC currently raises/drops privilege via CONTROL rather than dispatching by syscall ID; existing helpers still need routing across that boundary now that tasks can't reach kernel state.

HARDWARE-ENFORCED SAFETY · CORTEX-M7 PORT

An out-of-bounds stack write doesn't corrupt memory. It faults.

Each task's stack is writable only through the sliding active-task MPU region. Write past your bounds and the hardware raises a MemManage fault with the offending address in MMFAR — a genuine stack overflow is distinguishable from any other access violation. A property of the isolation model, not a watermark scan.

Try it: push frames until task_a runs out of stack. Addresses are illustrative.

SRAM · task_a region 0x20010000–0x20010200 {{ labBadge }}
0x20010200 · other taskno access
{{ slot.addr }} · {{ slot.label }}{{ slot.state }}
0x2000FFFC · below bounds{{ guardState }}
PSP{{ regSP }}
MMFAR{{ regMMFAR }}
CFSR{{ regCFSR }}
02 — ENGINEERING NOTES FOUND ON HARDWARE · FIXED WITH GDB

Real hardware. Real debugging.

The interesting part is what breaks. Four bugs from bringing Fleurr up on two very different architectures — hover or tap to read each one.

NOTE {{ noteIndex }} / 04{{ noteTag }}

{{ noteTitle }}

{{ noteBody }}

HOW{{ noteHow }}
03 — TOOLING & ROADMAP AROUND THE KERNEL, AND ON TOP OF IT

Flash it from a terminal. Then put the kernel to work.

AVR_SERIAL · HARDWARE TOOLINGImplemented

A personal avrdude, built on raw POSIX.

A from-scratch serial and flashing utility. It talks to the port through termios and ioctl directly, times a DTR reset pulse precisely enough for the Optiboot bootloader to catch it, then programs the chip over the STK500v1 protocol — no serial library, no avrdude. A separate mode streams live ASCII ADC telemetry over UART.

POSIX termiosSTK500v1OptibootDTR resetUART telemetry

Confirmed target: ATmega328P. Exact command coverage and DTR timing values to be documented.

Explore on GitHub →
avr_serial — /dev/ttyUSB0 SIMULATED SESSION
{{ line.tag }}{{ line.text }}
{{ termCursor }}
ILLUSTRATIVE FLOW · DTR → SYNC → WRITE → VERIFY
POWERED BY FLEURR · CURRENT FOCUSIn development

SD storage, then dynamically loaded, MPU-isolated programs.

Real I/O workloads running on top of the kernel — an RTOS kernel gaining OS-like capabilities (dynamic loading, isolation, a syscall boundary). Not a general-purpose OS, and not MMU virtual memory. Select a stage to see what's built versus planned.

STAGE {{ stageIndex }}{{ stageStatus }}

{{ stageBody }}

04 — CONNECTEMBEDDED · SYSTEMS · COMPILERS

Good systems start with good questions.

Open to embedded, systems, and compiler engineering roles and internships. If you're building close to the hardware, I'd like to hear about it.