diff --git a/examples/rtic_bare1.rs b/examples/rtic_bare1.rs index 1a65d00a22f2d5394c9f9b6e871a4c7771aa3ceb..31b5636e6918bacbd0029d541de83eb8cf75cf8d 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) //