Module f3::examples::panic [] [src]

panic!s send their messages to the ITM

See the itm example for instruction on how the receive "ITM" messages on the HOST, e.g. your laptop. You should see the following output after running the program below:

$ itmdump /tmp/itm.fifo
PANIC at 'Hello, world!', examples/

Like with "std" panics, these panics also report file and line information.


extern crate cortex_m;
extern crate f3;

#[export_name = "main"]
pub extern "C" fn main() -> ! {
    panic!("Hello, world!")