Skip to content

Nuvoton: Fix NVSTORE test failed #6437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion targets/TARGET_NUVOTON/TARGET_M451/flash_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion targets/TARGET_NUVOTON/TARGET_M480/flash_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion targets/TARGET_NUVOTON/TARGET_NUC472/flash_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down