From 3dcdbf0d5f41c407fd6f16a16c5ca1bc18e01a01 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 8 Dec 2019 18:20:04 +0100 Subject: [PATCH] bootloader: Never auto-start the application in the intermediate bootloader. Instead, we now always enter bootloader operation. I think this has less potential of bricking a device in case you don't press PTE24 fast enough after installing the intermediate bootloader. --- src/bootloader/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index 52a1473..a5fe983 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -65,6 +65,12 @@ unsafe fn application_missing() -> bool { first_app_word.read() == 0xffffffff } +#[cfg(bootloader_type = "intermediate")] +fn bootloader_requested() -> bool { + true +} + +#[cfg(bootloader_type = "final")] fn bootloader_requested() -> bool { let start_ticks = systick::now(); -- 2.30.2