File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
lib/sdk11/components/libraries/bootloader_dfu Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -817,6 +817,9 @@ uint32_t dfu_sd_image_validate(void)
817
817
uint32_t image_end = bootloader_settings .sd_image_start +
818
818
bootloader_settings .sd_image_size ;
819
819
820
+ /* ##### FIX START ##### */
821
+ block_size &= ~(uint32_t )(CODE_PAGE_SIZE - 1 );
822
+ /* ##### FIX END ##### */
820
823
uint32_t img_block_start = bootloader_settings .sd_image_start + 2 * block_size ;
821
824
uint32_t sd_block_start = sd_start + 2 * block_size ;
822
825
Original file line number Diff line number Diff line change @@ -790,6 +790,9 @@ uint32_t dfu_sd_image_validate(void)
790
790
uint32_t image_end = bootloader_settings .sd_image_start +
791
791
bootloader_settings .sd_image_size ;
792
792
793
+ /* ##### FIX START ##### */
794
+ block_size &= ~(uint32_t )(CODE_PAGE_SIZE - 1 );
795
+ /* ##### FIX END ##### */
793
796
uint32_t img_block_start = bootloader_settings .sd_image_start + 2 * block_size ;
794
797
uint32_t sd_block_start = sd_start + 2 * block_size ;
795
798
You can’t perform that action at this time.
0 commit comments