mkdbg

A firmware debugger for Cortex-M and RISC-V that needs only the UART

Image 1 of 1: Bring-up dashboard with board stages, fault details and the live session

A crash reporter and live debugger over the serial cable used for logs: a few lines in the firmware send faults and register state, and the host decodes the stack, names the likely culprit, runs a debug TUI, bridges GDB without a probe, and exports and diffs crash bundles.

Trade-offs

  • The serial port already used for logs carries the debug session, so no JTAG adapter, OpenOCD setup or GDB install is needed; a hardware probe stays optional through probe-rs.
  • The firmware side is two UART functions and a fault hook, so it ports to FreeRTOS, Zephyr, bare metal or a custom RTOS.
  • A built-in Thumb and Thumb-2 disassembler, VFPv4 included, so decoding needs neither objdump nor addr2line.

Q&A2

The fault type and its cause, such as a stack overflow, the PC and LR resolved to functions, and a backtrace with the likely culprit marked; --explain adds an explanation.

Reviews

Loading reviews

    More in RTOS

    See all 4 →
    • Xaloqi EDSISO 14229 UDS diagnostics for Zephyr and FreeRTOS, generated from YAML
    • kube32Kubernetes-compatible control plane for ESP32 microcontrollers
    • SimpleGoA native C implementation of the SimpleX messaging protocol on an ESP32-S3
    • QuakeGuardEarthquake early warning on low-cost ESP32 sensors

    More in Embedded

    See all 28 →
    • CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
    • NightRunLocal LLM runtime that boots from USB with no conventional operating system
    • RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments
    • Anemoia-ESP32NES emulator running at native speed on a plain ESP32
    • sanoTTS-jpJapanese text-to-speech small enough for a $3 ESP32-S3 microcontroller
    • TouchDeckA local touch control deck for Home Assistant and PC stats on an ESP32-S3

    More in Developer tools

    See all 88 →
    • EpuppBrowser extension that opens a live ClojureScript REPL into any web page
    • ResonanceA local-first API client with no account, collections kept as YAML files
    • PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
    • PandaWardLocal application security assessment that reports what it couldn't decide
    • ScalexScala code navigation for coding agents, from source and without a build
    • polyOne Rust binary that lints and formats about 30 languages