Crate panic_itm [−] [src]
Log panic messages using the ITM (Instrumentation Trace Macrocell)
This crate contains an implementation of panic_fmt
that logs panic messages to the ITM
stimulus port 0. Before printing the message the panic handler disables (masks) all the device
specific interrupts. After printing the message the panic handler goes into an infinite loop.
Usage
ⓘThis example is not tested
#![no_std] extern crate panic_itm; fn main() { panic!("FOO") }
(gdb) monitor tpiu config external uart off 8000000 2000000
(gdb) monitor itm port 0 on
(gdb) continue
(..)
$ itmdump -f /dev/ttyUSB0
panicked at 'FOO', src/main.rs:6:5