From c142aef89755a925bb1194fd822d0062443e4793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvin=20=C3=85kerfeldt?= <Edvin Åkerfeldt> Date: Wed, 2 Dec 2020 15:36:16 +0100 Subject: [PATCH] C complete --- src/main.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 70e65b6..92c2c5f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,10 +21,12 @@ const APP: () = { #[idle] fn idle(_cx: idle::Context) -> ! { rprintln!("idle"); - // panic!("panic"); + panic!("panic"); + /* loop { continue; } + */ } }; @@ -64,6 +66,16 @@ const APP: () = { // What is the output? // // [Your answer here] +/* + Finished dev [unoptimized + debuginfo] target(s) in 0.03s + Running `probe-run --chip STM32F411RETx target/thumbv7em-none-eabi/debug/app` + (HOST) INFO flashing program (18.18 KiB) + (HOST) INFO success! +──────────────────────────────────────────────────────────────────────────────── +init +idle +panicked at 'panic', src/main.rs:24:9 +*/ // // D) Panic halt // Tracing is nice during development, but requires a debugger attached -- GitLab