Merge pull request #6437 from OpenNuvoton/nuvoton_fix_flash

Nuvoton: Fix NVSTORE test failed
pull/6442/head
Cruz Monrreal 2018-03-23 12:02:44 -05:00 committed by GitHub
commit cffa1c055e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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