From ccd68b1fa31a5313189544b15a78a8295104c7f4 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 17 Nov 2019 21:42:01 +0100 Subject: [PATCH] bootloader: Call clock::reset() before jumping to the application. By switching back to FBE clock mode there, we can unconditionally do the switches to FBE, PBE and PEE in any of our programs. --- src/bootloader/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index ec71e15..52a1473 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -104,5 +104,7 @@ pub unsafe extern fn main() { disable_interrupts(); + clock::reset(); + jump_to_application(APPLICATION_ADDR); } -- 2.30.2