From 2b98183f540c404ee03f9327f087ae1d119326d1 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 10:06:12 +0200 Subject: [PATCH] bootloader: Define application offset. This defines the APPLICATION_ADDR constant and sets it to the offset of the vector table to jump to after the bootloader is done. --- src/bootloader/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index e7746c0..f54b4bc 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -33,6 +33,8 @@ mod bootloader; use common::clock; use common::usb_serial; +const APPLICATION_ADDR: u32 = 0x0; + #[no_mangle] pub unsafe extern fn main() { clock::configure(); -- 2.30.2