Skip to content

Commit 6d927eb

Browse files
authored
Merge pull request #418 from danielinux/same51_sector_size
Fixed sector size for SAME51
2 parents c005ba6 + 2500266 commit 6d927eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

IDE/MPLAB/test-app/test-usb-updater.same51.X/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void APP_Initialize(void) {
4747
wolfBoot_success();
4848
ver = wolfBoot_current_firmware_version();
4949
#else
50-
#define WOLFBOOT_SECTOR_SIZE (0x8000)
50+
#define WOLFBOOT_SECTOR_SIZE (0x2000)
5151
#define WOLFBOOT_PARTITION_SIZE (0x20000)
5252
#define WOLFBOOT_PARTITION_UPDATE_ADDRESS (0x088000)
5353
ver = 1U;

config/examples/same51-dualbank.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VTOR?=1
66
SPMATH?=1
77
ARCH_FLASH_OFFSET=0x00000000
88
WOLFBOOT_PARTITION_SIZE?=0x20000
9-
WOLFBOOT_SECTOR_SIZE?=0x8000
9+
WOLFBOOT_SECTOR_SIZE?=0x2000
1010
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08000
1111
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x088000
1212
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x200000

config/examples/same51.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VTOR?=1
66
SPMATH?=1
77
ARCH_FLASH_OFFSET=0x00000000
88
WOLFBOOT_PARTITION_SIZE?=0x20000
9-
WOLFBOOT_SECTOR_SIZE?=0x8000
9+
WOLFBOOT_SECTOR_SIZE?=0x2000
1010
WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x8000
1111
WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x80000
1212
WOLFBOOT_PARTITION_SWAP_ADDRESS?=0xF8000

0 commit comments

Comments
 (0)