Skip to content

Commit cb087ed

Browse files
committed
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.
1 parent d5ef467 commit cb087ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_RENESAS/TARGET_RZ_A1XX/flash_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
160160

161161
uint32_t flash_get_page_size(const flash_t *obj)
162162
{
163-
return 1;
163+
return 8;
164164
}
165165

166166
uint32_t flash_get_start_address(const flash_t *obj)

0 commit comments

Comments
 (0)