Skip to content

Commit 84c1aee

Browse files
li-hoadbridge
authored andcommitted
Fix on chip flash minimal programmable unit size
- sector size is 0x800 bytes - writeable unit size is 0x8 bytes - flash start address is 0x0 - total ADuCM3029 on chip flash size is 0x40000 bytes - total ADuCM4050 on chip flash size is 0x7F000 bytes
1 parent 5e2977f commit 84c1aee

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)