5 years, 4 months ago.

How use a shorter time to write spi flash?

i use little file system to operate file, but i write 1024bytes data to spi flash use a long time about 150ms. is there anybody encouter this problem?

1 Answer

5 years, 4 months ago.

Write speed is based upon the speed of the SPI flash clock and the internal workings of the SPI flash part (erase, write, verify,...) In a previous post you mentioned SPI clock a 4mhz. That is a slow clock. Find faster SPI flash and use a faster clock if you need faster write times. also see this video.

https://os.mbed.com/blog/entry/Office-Hours-LittleFS-with-Chris-Haster/