| Crates.io | panic-rtt-core |
| lib.rs | panic-rtt-core |
| version | 0.2.1 |
| created_at | 2020-04-10 15:01:57.767919+00 |
| updated_at | 2020-08-23 01:36:21.682155+00 |
| description | Report panic messages to the host using RTT / jlink |
| homepage | |
| repository | https://github.com/tstellanova/panic-rtt-core |
| max_upload_size | |
| id | 228357 |
| size | 4,593 |
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.
#![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");
}