From f7ff09d243dc6241b07633f27256da1b77da8b18 Mon Sep 17 00:00:00 2001 From: Qinghao Shi Date: Fri, 9 Nov 2018 15:29:36 +0000 Subject: [PATCH] fix bug set a correct page size --- targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c b/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c index 019388a145b..f85f54aa621 100644 --- a/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c +++ b/targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c @@ -14,6 +14,7 @@ * limitations under the License. */ +#include "string.h" #include "device.h" #include "flash_api.h" #include "memory_zones.h" @@ -22,7 +23,7 @@ * The implementation emulates flash over SRAM. */ -#define FLASH_PAGE_SIZE 256 +#define FLASH_PAGE_SIZE 4U #define FLASH_OFS_START ZBT_SRAM1_START #define FLASH_SECTOR_SIZE 0x1000 #define FLASH_OFS_END (ZBT_SRAM1_START + ZBT_SRAM1_SIZE)