mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6437 from OpenNuvoton/nuvoton_fix_flash
Nuvoton: Fix NVSTORE test failedpull/6442/head
commit
cffa1c055e
|
@ -65,7 +65,8 @@ static const sector_info_t sectors_info[] = {
|
|||
};
|
||||
|
||||
static const flash_target_config_t flash_target_config = {
|
||||
.page_size = 0x800, // 2 KB
|
||||
.page_size = 4, // 4 bytes
|
||||
// Here page_size is program unit, which is different than FMC definition.
|
||||
.flash_start = 0x0,
|
||||
.flash_size = 0x40000, // 256 KB
|
||||
.sectors = sectors_info,
|
||||
|
|
|
@ -69,7 +69,8 @@ static const sector_info_t sectors_info[] = {
|
|||
};
|
||||
|
||||
static const flash_target_config_t flash_target_config = {
|
||||
.page_size = 0x200, // 512 bytes
|
||||
.page_size = 4, // 4 bytes
|
||||
// Here page_size is program unit, which is different than FMC definition.
|
||||
.flash_start = 0x0,
|
||||
.flash_size = 0x80000, // 512 KB
|
||||
.sectors = sectors_info,
|
||||
|
|
|
@ -67,7 +67,8 @@ static const sector_info_t sectors_info[] = {
|
|||
};
|
||||
|
||||
static const flash_target_config_t flash_target_config = {
|
||||
.page_size = 0x800, // 2 KB
|
||||
.page_size = 4, // 4 bytes
|
||||
// Here page_size is program unit, which is different than FMC definition.
|
||||
.flash_start = 0x0,
|
||||
.flash_size = 0x80000, // 512 KB
|
||||
.sectors = sectors_info,
|
||||
|
|
Loading…
Reference in New Issue