We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e3149 commit 4ce961fCopy full SHA for 4ce961f
lib/sdk11/components/libraries/bootloader_dfu/dfu_dual_bank.c
@@ -817,6 +817,9 @@ uint32_t dfu_sd_image_validate(void)
817
uint32_t image_end = bootloader_settings.sd_image_start +
818
bootloader_settings.sd_image_size;
819
820
+ /* ##### FIX START ##### */
821
+ block_size &= ~(uint32_t)(CODE_PAGE_SIZE - 1);
822
+ /* ##### FIX END ##### */
823
uint32_t img_block_start = bootloader_settings.sd_image_start + 2 * block_size;
824
uint32_t sd_block_start = sd_start + 2 * block_size;
825
0 commit comments