From 8163d083b9838e5b97d6a556ffc9d06dcb55fb4d Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 14 Sep 2019 16:52:35 +0200 Subject: [PATCH] main: print panic info with semihosting --- firmware/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/src/main.rs b/firmware/src/main.rs index 20ad9c2..6f52182 100644 --- a/firmware/src/main.rs +++ b/firmware/src/main.rs @@ -31,6 +31,8 @@ macro_rules! println { #[panic_handler] pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! { println!("{}", info); + let mut stdout = hio::hstdout().unwrap(); + let _ = writeln!(stdout, "{}", info); loop {} }