1 unstable release

0.1.0 Aug 20, 2024

#1161 in Development tools

MIT/Apache

16KB
147 lines

panic-tracing-rtt

Crates.io Crates.io License

Cargo.toml

[dependencies]
panic-tracing-rtt = "0"

Usage

#![no_std]

use panic_tracing_rtt as _;

fn main() {
    tracing_rtt::init();

    panic!("jankincai");
}

lib.rs:

Set the panicking behavior to a J-LINK debugger and loop.

This crate contains a panic handler that emits the reason to an in-memory ring buffer that an attached J-LINK device can print, and then loops forever.

Example

#![no_std]

use panic_tracing_rtt as _;

fn main() {
    panic!("jankincai");
}

Dependencies

~1.5MB
~22K SLoC