diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs index 73d8788..e53767d 100644 --- a/bootloader/src/main.rs +++ b/bootloader/src/main.rs @@ -45,14 +45,18 @@ const BOOTLOADER_START_ADDR: u32 = 0x0; const BOOTLOADER_CRC_ADDR: u32 = BOOTLOADER_END_ADDR - 4; const BOOTLOADER_END_ADDR: u32 = 0x4000; -const APP_A_START_ADDR: u32 = BOOTLOADER_END_ADDR; // 0x4000 - // The actual size of the image which is relevant for CRC calculation. +// 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 pub const APP_A_END_ADDR: u32 = APP_B_END_ADDR - BOOTLOADER_END_ADDR / 2; -const APP_B_START_ADDR: u32 = APP_A_END_ADDR; // 0x22000 - // The actual size of the image which is relevant for CRC calculation. +// 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