Olimex Support Forum

Others => FPGA => Topic started by: AlanD on November 20, 2016, 07:21:22 pm

Title: SPIFlash versions
Post by: AlanD on November 20, 2016, 07:21:22 pm
The versions of the SpiFlash libraries for Arduino have moved on since the iceprog.ino code was created.
The current (as of 20/11/16) is 2.5 and wont compile since some writePage/readPage functions have been deprecated.
Version 2.4 plain doesn't work. (Hangs after initial bulk erase during programming)
Version 2.3 Does work with current iceprog.ino code.
Title: Re: SPIFlash versions
Post by: HidroKonsult on December 14, 2016, 04:30:59 pm
Version 2.2.0 worked for me. After endless hours of trouble with the newer versions I finally tried this one. It worked.
Title: Re: SPIFlash versions
Post by: cwall on January 26, 2017, 05:06:13 pm
Agree 2.2 seems to be the one that works for me as well.

Following this forum message from the author of SpiFlash library


he seems to done things to speed up the library, in later versions.  So maybe now as well as the 2.5 change which broke things, the other ones are now going too fast for the wiring or the flash chip.

Also the 32u4 seems to drop off the serial chain a lot, have been doing  "ls /dev/ttyACM*" to make sure it has been seen after doing a reset to get it recognized again.  The 32u4 saves money but it sure is a brittle link in the tool chain.

Cheers Carl
Title: Re: SPIFlash versions
Post by: LubOlimex on February 01, 2017, 10:45:36 am

Yes, you should use version 2.2.0. I wasn't aware that it isn't mentioned anywhere until I received a couple of e-mails.

I've now included instructions and pictures on the exact version of the library required for successful compilation. These went both in the GitHub pages here:


and also in the wiki:


and also as a comment in the .ino file itself:


Best regards,
Title: Re: SPIFlash versions
Post by: unclouded on July 25, 2020, 10:31:25 am
Hey, please would you update the documentation to refer to this link for version 2.2.0:


The project has since been renamed and a direct link to the old version would have saved me some time.

Also, please remove any references to it being possible to install via the Arduino library manager.  It must be installed as a .zip library.

Title: Re: SPIFlash versions
Post by: LubOlimex on July 27, 2020, 11:52:35 am
Thank you very much for this notice and the solution. The wiki is now updated to reflect the changes. Let me know if you notice other discrepancy.