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

https://forum.arduino.cc/index.php?topic=324009.0

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
Hey,

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:

https://github.com/OLIMEX/iCE40HX1K-EVB/tree/master/programmer/olimexino-32u4%20firmware

and also in the wiki:

https://www.olimex.com/wiki/ICE40HX1K-EVB#Preparing_OLIMEXINO-32U4_as_programmer

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

https://github.com/OLIMEX/iCE40HX1K-EVB/blob/master/programmer/olimexino-32u4%20firmware/iceprog.ino

Best regards,
Lub/OLIMEX
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:

  https://github.com/Marzogh/SPIMemory/releases/tag/v2.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.

Cheers!
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.