SPIFlash: Arduino Library for Winbond Flash memory chips
Praj · Zenodo (CERN European Organization for Nuclear Research) · 2015
SPIFlash Arduino library for Winbond Flash Memory Chips Download the latest stable release (v2.2.0) from here. Please report any bugs in issues. This Arduino library is for use with Winbond serial flash memory chips. In its current form it supports identifying the flash chip and its various features; automatic address allocation and management; reading and writing bytes/chars/ints/longs/floats/Strings from and to various locations; reading and writing pages of bytes; continous reading/writing of data from/to arrays of bytes/chars; sector, block and chip erase; and powering down for low power operation. For details of the Winbond Flash chips compatible with this library please refer to the Excel spreadsheet in the Extras folder. Compatibility Arduino IDE versions IDE v1.5.x IDE v1.6.0-v1.6.5 Boards Arduino Uno Arduino Leonardo Arduino Mega Arduino Due ATTiny85 Installation Option 1 Click on the 'Download zip' below. Unzip the archive and rename resulting folder to 'SPIFlash' Move the folder to your libraries folder (~/sketches/libraries) Option 2 Open the Arduino IDE. Go to Sketch > Include Library > Manage libraries. Search for SPIFlash. Install the latest version. Change log v2.2.0 When #RUNDIAGNOSTIC is uncommented, the _troubleshoot() function is now optimised for different µCs Added the ability to check if the address has been previously written to before initiating a write operation. Added a sizeofStr() function to get sizes of String objects, to use with the getAddress() function Fixed a bug with getAddress() Added the ability get the chip's name via getChipName() Diagnostics.ino has been made more and efficient and provides a cleaner Serial output Added getAddressEx.ino to show how getAdress() works.