Welcome, Guest

Author Topic: SPIFlash versions  (Read 1511 times)


  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
SPIFlash versions
« 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.


  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: SPIFlash versions
« Reply #1 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.


  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: SPIFlash versions
« Reply #2 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


  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1642
  • Karma: +42/-2
Re: SPIFlash versions
« Reply #3 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,
Technical support and documentation manager at Olimex