Skip to content

Commit 6659084

Browse files
authored
Merge pull request #6367 from li-ho/ev-cog-flash-api-fix
ADI: Fix on chip flash minimal programmable unit size
2 parents 9bebb8c + b26b682 commit 6659084

File tree

2 files changed

+2
-2
lines changed
  • targets/TARGET_Analog_Devices

2 files changed

+2
-2
lines changed

targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static const sector_info_t sectors_info[] = {
7676
};
7777

7878
static const flash_target_config_t flash_target_config = {
79-
.page_size = 0x800,
79+
.page_size = 0x8, // minimal programmable unit size
8080
.flash_start = 0x0,
8181
.flash_size = 0x00040000,
8282
.sectors = sectors_info,

targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static const sector_info_t sectors_info[] = {
7474
};
7575

7676
static const flash_target_config_t flash_target_config = {
77-
.page_size = 0x800,
77+
.page_size = 0x8, // minimal programmable unit size
7878
.flash_start = 0x0,
7979
.flash_size = 0x0007F000,
8080
.sectors = sectors_info,

0 commit comments

Comments
 (0)