mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/8072/head
parent
d5ef4672b1
commit
cb087ed63a
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue