From 7fec82e2d3f2bd6d46b2cb3e98d4edbc3363f535 Mon Sep 17 00:00:00 2001 From: Anton <anton.frappe@outlook.com> Date: Tue, 2 Mar 2021 15:25:31 +0100 Subject: [PATCH] bare1_2 --- examples/rtic_bare1.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/rtic_bare1.rs b/examples/rtic_bare1.rs index 1a65d00..31b5636 100644 --- a/examples/rtic_bare1.rs +++ b/examples/rtic_bare1.rs @@ -66,11 +66,20 @@ const APP: () = { // // Paste the backtrace: // -// ** your answer here +// #0 lib::__bkpt () at asm/lib.rs:49 +// #1 0x0800104e in cortex_m::asm::bkpt () at /home/frappe/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-0.7.1/src/asm.rs:15 +// #2 panic_semihosting::panic (info=0x2000fed8) at /home/frappe/.cargo/registry/src/github.com-1ecc6299db9ec823/panic-semihosting-0.5.6/src/lib.rs:92 +// #3 0x0800039a in core::panicking::panic_fmt () at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b//library/core/src/panicking.rs:92 +// #4 0x08000374 in core::panicking::panic () at /rustc/cb75ad5db02783e8b0222fee363c5f63f7e2cf5b//library/core/src/panicking.rs:50 +// #5 0x08000ebe in rtic_bare1::init (_cx=...) at /home/frappe/document/E7020E/software_labs/e7020e_2021/examples/rtic_bare1.rs:24 +// #6 0x08000f08 in rtic_bare1::APP::main () at /home/frappe/document/E7020E/software_labs/e7020e_2021/examples/rtic_bare1.rs:15 // // Explain in your own words the chain of calls. // -// ** your answer here +// App calls init, init initializes a mutable variable x to int max -1 +// init loops while adding to x, x goes over max, rust calls panic +// panic calls panic_format, panic_fmt calls semihosting_panic +// panic semihosting calls brakpoint. // // Commit your answer (bare1_2) // -- GitLab