diff --git a/src/main.rs b/src/main.rs index 70e65b6510aff5ff87893f4975ccf3ebff4edda3..92c2c5fcc89e4f263d312df5a92dc28e241428e7 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