From: Tilman Sauerbeck Date: Sun, 17 Nov 2019 20:42:01 +0000 (+0100) Subject: bootloader: Call clock::reset() before jumping to the application. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;ds=sidebyside;h=ccd68b1fa31a5313189544b15a78a8295104c7f4;p=gps-watch.git 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. --- 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); }