#panic-handler #jlink #rtt #panic-impl

no-std panic-rtt-core

Report panic messages to the host using RTT / jlink

3 unstable releases

0.2.1 Aug 23, 2020
0.1.1 May 20, 2020
0.1.0 Apr 10, 2020

#7 in #jlink

Download history 31/week @ 2025-09-16 35/week @ 2025-09-23 32/week @ 2025-09-30 8/week @ 2025-10-07 33/week @ 2025-10-14 51/week @ 2025-10-21 16/week @ 2025-10-28 13/week @ 2025-11-04 18/week @ 2025-11-11 15/week @ 2025-11-18 16/week @ 2025-11-25 14/week @ 2025-12-02 6/week @ 2025-12-09 21/week @ 2025-12-16 16/week @ 2025-12-23 7/week @ 2025-12-30

51 downloads per month
Used in 11 crates

BSD-3-Clause

4KB

Set the panicking behavior to log to a JLINK debugger and break.

Currently, this crate only supports the ARM Cortex-M architecture.

Usage

#![no_std]

use panic_rtt_core::{self, rtt_init_print, rprintln};

fn main() {
    // you must create a print channel if you wish to see print output in RTT
    rtt_init_print!(NoBlockTrim);
    let value = 5;
    rprintln!("Hello world! {}", value);
    panic!("message logged to jlink debugger");
}

panic-rtt-core

Set the panicking behavior to log to a JLINK debugger and break. This leverages the rtt-target crate.

Currently, this crate only supports the ARM Cortex-M architecture.

Example

#![no_std]
use panic_rtt_core::{self, rtt_init_print, rprintln};

fn main() {
  // you must create a print channel if you wish to see print output in RTT
  rtt_init_print!(NoBlockTrim);
  let value = 5;
  rprintln!("Hello world! {}", value);
  panic!("message logged to jlink debugger");
}

Dependencies

~1MB
~21K SLoC