Skip to content

Commit 2500266

Browse files
committed
Fixed sector size for SAME51
According to datasheet DS60001507, section 25.6.2: "The NVM is organized into two banks, each bank is organized into blocks, where each block contains sixteen pages and page size is 512 bytes."
1 parent c005ba6 commit 2500266

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)