From bec3e9afcfcc4002288523a009d6953df4a75e36 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 23 Sep 2024 11:51:28 +0200 Subject: [PATCH] no inline comments then --- bootloader/src/main.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs index e53767d..a409935 100644 --- a/bootloader/src/main.rs +++ b/bootloader/src/main.rs @@ -49,17 +49,22 @@ const BOOTLOADER_END_ADDR: u32 = 0x4000; const APP_A_START_ADDR: u32 = BOOTLOADER_END_ADDR; // The actual size of the image which is relevant for CRC calculation will be store at this // address. -const APP_A_SIZE_ADDR: u32 = APP_B_END_ADDR - 8; // 0x21FF8 -const APP_A_CRC_ADDR: u32 = APP_B_END_ADDR - 4; // 0x21FFC +// 0x21FF8 +const APP_A_SIZE_ADDR: u32 = APP_B_END_ADDR - 8; +// 0x21FFC +const APP_A_CRC_ADDR: u32 = APP_B_END_ADDR - 4; pub const APP_A_END_ADDR: u32 = APP_B_END_ADDR - BOOTLOADER_END_ADDR / 2; // 0x22000 const APP_B_START_ADDR: u32 = APP_A_END_ADDR; // The actual size of the image which is relevant for CRC calculation will be stored at this // address. -const APP_B_SIZE_ADDR: u32 = APP_B_END_ADDR - 8; // 0x3FFF8 -const APP_B_CRC_ADDR: u32 = APP_B_END_ADDR - 4; // 0x3FFFC -pub const APP_B_END_ADDR: u32 = NVM_SIZE; // 0x40000 +// 0x3FFF8 +const APP_B_SIZE_ADDR: u32 = APP_B_END_ADDR - 8; +// 0x3FFFC +const APP_B_CRC_ADDR: u32 = APP_B_END_ADDR - 4; +// 0x40000 +pub const APP_B_END_ADDR: u32 = NVM_SIZE; pub const APP_IMG_SZ: u32 = APP_B_END_ADDR - APP_A_START_ADDR / 2;