Skip to content

Commit 39d3955

Browse files
committed
boards/arm/samv7: fix default flash image size when using MCUBoot
Fixes FLASH_IMG_SIZE definition to use SAMV7_OTA_SLOT_SIZE for the CONFIG_BOARDCTL_BOOT_IMAGE condition, keeping in sync with the other definitions on the same file. Signed-off-by: Filipe Cavalcanti <[email protected]>
1 parent 858619e commit 39d3955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boards/arm/samv7/common/scripts/flash.ld.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# define MCUBOOT_HEADER_SIZE CONFIG_SAMV7_MCUBOOT_HEADER_SIZE
3535
# ifdef CONFIG_BOARDCTL_BOOT_IMAGE
3636
# define FLASH_OFFSET 0
37-
# define FLASH_IMG_SIZE CONFIG_SAMV7_OTA_PRIMARY_SLOT_OFFSET
37+
# define FLASH_IMG_SIZE CONFIG_SAMV7_OTA_SLOT_SIZE
3838
# else
3939
# define FLASH_OFFSET (CONFIG_SAMV7_OTA_PRIMARY_SLOT_OFFSET + MCUBOOT_HEADER_SIZE)
4040
# define FLASH_IMG_SIZE (CONFIG_SAMV7_OTA_SLOT_SIZE - MCUBOOT_HEADER_SIZE)

0 commit comments

Comments
 (0)