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
pull/6367/head
li-ho 2018-03-15 16:50:06 +11:00
parent 5523d53f83
commit b26b682902
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,