November 22, 2024, 05:21:05 PM

SPIFlash versions

Started by AlanD, November 20, 2016, 07:21:22 PM

Previous topic - Next topic

AlanD

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.

HidroKonsult

Version 2.2.0 worked for me. After endless hours of trouble with the newer versions I finally tried this one. It worked.

cwall

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

LubOlimex

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
Technical support and documentation manager at Olimex

unclouded

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!

LubOlimex

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.
Technical support and documentation manager at Olimex