Additional projects

panicdump

A Cortex-M fault can erase the register and reason context needed for diagnosis.

A retained-RAM library commits a fixed 192-byte CRC-protected dump and exports it for offline decoding.

Stablev2.0.0MITC99
Last verified
Not audited against current README/docs
Platform scope
Portable C99; integration depends on caller-provided adapters

What it solves

A Cortex-M fault can erase the register and reason context needed for diagnosis.

How it works

1Fault2retained 192-byte commit3reboot check4export5offline decoder

Use it when

Capture Cortex-M fault state
Export a retained dump over a character sink at boot
Decode binary or captured hex on a host

Quick Start

#include "panicdump.h"
if(panicdump_has_valid()){
  panicdump_boot_check_and_export(write_char);
  panicdump_clear();
}
/* Expected: valid retained evidence is exported once. */

Real scenarios

01

Capture Cortex-M fault state

A retained-RAM library commits a fixed 192-byte CRC-protected dump and exports it for offline decoding.

02

Export a retained dump over a character sink at boot

A retained-RAM library commits a fixed 192-byte CRC-protected dump and exports it for offline decoding.

03

Decode binary or captured hex on a host

A retained-RAM library commits a fixed 192-byte CRC-protected dump and exports it for offline decoding.

Engineering evidence

  • README records passing host, sanitizer, static-analysis, package, decoder and ARM CI gates

Known limits

  • Targets bare-metal Cortex-M plus a host/mock test port
  • Retained RAM placement and reset behavior are platform responsibilities
  • A dump records evidence; it does not recover the application