From b26b6829023c07ed58011543c7c2e0c746a8828f Mon Sep 17 00:00:00 2001 From: li-ho Date: Thu, 15 Mar 2018 16:50:06 +1100 Subject: [PATCH] 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 --- .../TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c | 2 +- .../TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c index feae0e3d98..304219e8af 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM302X/TARGET_ADUCM3029/api/flash_api.c @@ -76,7 +76,7 @@ static const sector_info_t sectors_info[] = { }; static const flash_target_config_t flash_target_config = { - .page_size = 0x800, + .page_size = 0x8, // minimal programmable unit size .flash_start = 0x0, .flash_size = 0x00040000, .sectors = sectors_info, diff --git a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c index 25afcc193f..2779c4cb5a 100755 --- a/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c +++ b/targets/TARGET_Analog_Devices/TARGET_ADUCM4X50/TARGET_ADUCM4050/api/flash_api.c @@ -74,7 +74,7 @@ static const sector_info_t sectors_info[] = { }; static const flash_target_config_t flash_target_config = { - .page_size = 0x800, + .page_size = 0x8, // minimal programmable unit size .flash_start = 0x0, .flash_size = 0x0007F000, .sectors = sectors_info,