1 of 1 people found this helpful
Most serial flashes have a sector size of 4 KBytes. Which API are you using to write to the serial flash?
> Having a look at spi_flash.c make me think that low level writes are done one byte at a time.
Is this from your application and did you mean to attach this file here?
I use wiced API:
as 'apps/waf/sflash_write' does.
Source code in:
Please look a the function:
int sflash_write( const sflash_handle_t* const handle, unsigned long device_address, /*@observer@*/ const void* const data_addr, unsigned int size )
unsigned int max_write_size = (unsigned int) 1;
wiced 2.4, 3.0 & 3.1
I think this is the reason why write are very slow.
I realize now this post is in the wrong forum, should be in Wiced Wi-Fi.
I've upgraded from Wiced 3.0.0 to 3.1, it's faster and acceptable: 4KB/s, two minutes for a 532KB file.