From cb087ed63ab16307ed05ededdea9f61ef7d2c19f Mon Sep 17 00:00:00 2001 From: TomoYamanaka Date: Thu, 27 Sep 2018 18:54:28 +0900 Subject: [PATCH] Revise the value of return value of flash_get_page_size() Currently the return value of flash_get_page_size() is 1 since the min size per one writing is 1 byte by Flash spec. However, I noticed that this value causes a enormous write time When writing large data such as FW update. So I revised this value to 8 byte by considering the writing time, memory alignment and memory hole. --- targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c index 1fb4862f38..34223653e8 100644 --- a/targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c +++ b/targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c @@ -160,7 +160,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address) uint32_t flash_get_page_size(const flash_t *obj) { - return 1; + return 8; } uint32_t flash_get_start_address(const flash_t *obj)