http://www.adafruit.com/product/1564
pyboard SPI flash tests:
I developed/hacked a "classless" set of python functions to exercise the Adafruit SPI flash, see
https://github.com/manitou48/pyboard/bl ... piflash.py
With breadboard and jumpers, I hooked the SPI flash to SPI1 of the pyboard. The specs say the flash SPI can operate up to 104MHz. I configured SPI1 to max speed of 42MHz. read speed is limited by the SPI speed. erase and write times are limited by the SPI flash. Maximum write unit per SPI transaction is 256 bytes. Here are some performance results:
Code: Select all
Erase times (microseconds)
block microseconds
4K 33109
32K 100354
64K 116908
chip 1162603
Write speed (megabits/second)
256 bytes 2.176 mbs
512 bytes 2.197 mbs
Read speed (mbs)
512 bytes 19.8 mbs
1K 26.3
4K 36.5
8K 39.3
16K 40.6
32K 41.3
64000 41.6
http://forum.micropython.org/viewtopic. ... =469#p4176
Paul has a teensy 3 library (C++) that supports various makes and models of SPI flash and has a simple file system for the SPI flash, see
https://github.com/PaulStoffregen/SerialFlash
TODO ...
Someone could develop a set of micropython classes to support the makes and models of SPI flash. There is already a python library that could be adapted to pyboard/micropython. See
https://github.com/eblot/pyspiflash/tre ... r/spiflash
On top of that, you could add a FAT wrapper in the spirit of the pyboard's firmware sdcard.py, so you could mount the SPI flash as a file system.