From f9570c7c65690c0be4ef6b80e8d46e1c55cd4885 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sun, 18 Nov 2018 15:04:30 +0100 Subject: [PATCH] Workaround for loop {} until it is fixed --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3142280..185b817 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,10 +7,13 @@ extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to c // extern crate panic_itm; // logs messages over ITM; requires ITM support // extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger +use cortex_m::asm; use cortex_m_rt::entry; #[entry] fn main() -> ! { + asm::nop(); // To not have main optimize to abort in release mode, remove when you add code + loop { // your code goes here }