From b8c96390b079a89106fd5dc132be9dc456396af0 Mon Sep 17 00:00:00 2001 From: Hammarkvast <tomham-3@student.ltu.se> Date: Thu, 20 Feb 2020 14:21:49 +0100 Subject: [PATCH] bare1_1 --- Cargo.toml | 2 +- examples/bare1.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b8b44a7..3a3532e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ nb = "0.1.2" [dependencies.cortex-m] version = "0.6.2" -# features = ["inline-asm"] # <- currently requires nightly compiler + features = ["inline-asm"] # <- currently requires nightly compiler [dependencies.cortex-m-rt] version = "0.6.12" diff --git a/examples/bare1.rs b/examples/bare1.rs index acd55f5..deaf900 100644 --- a/examples/bare1.rs +++ b/examples/bare1.rs @@ -59,11 +59,15 @@ fn main() -> ! { // What happens when you continue (second iteration of the loop)? // // ** your answer here ** +// Alot of items are added to the call stack of the program // // What is the `ITM` output. // // ** your answer here ** -// +// Program +// recieved signal SIGTRAP, Trace/breakpoint trap. +// bare1::cortex_m_rt_main () at examples/bare1.rs:22 +// 22 cortex_m::asm::bkpt() // Commit your answer (bare1_1) // // 2. Inspecting the generated assembly code. -- GitLab