Featured · Embedded real-time · 2026
Real-Time Radar DSP
A hard real-time radar signal-processing pipeline on FreeRTOS, running bare metal on an emulated ARM Cortex-M4F (QEMU, MPS2-AN386) and written in C++23. Every 16 ms it takes a block of 256 ADC samples, applies a Hann window and a radix-2 FFT, and detects targets with CA-CFAR.
- No heap. Dynamic allocation is off and the linker wraps
malloc/free, so any heap use fails the build. - Own startup code, linker script and UART driver; no exceptions, no RTTI, no hidden runtime.
- Zero-copy: tasks share four static buffers and pass only buffer indexes through queues.
- Rate-monotonic priorities; missed deadlines, lost blocks and stack headroom are measured while it runs.
- OS abstraction layer: porting to VxWorks or an ARINC 653 partition OS means a new backend, not a new pipeline.
ADC block
→ CFAR
lowest prio
rt-radar-pipeline 0.1.0 | FreeRTOS V11.3.3 | Cortex-M4F @ 25 MHz [18 ms] block #0 dsp 1/1 ms | free 3 full 0 | lost 0 ovr 0 ddrop 0 [18 ms] #0 bin 24 (1500 Hz) power 4075.535 thr 27.491 [18 ms] #0 bin 80 (5000 Hz) power 991.375 thr 33.315 [1000 ms] heartbeat #1 | stack headroom 211 words | log dropped 0
- 16 msblock period
- ~18 KBflash at -Os
- 22 KBRAM
- 0 Bheap