YosysHQ / icestorm

Project IceStorm - Lattice iCE40 FPGAs Bitstream Documentation (Reverse Engineered)
ISC License
999 stars 225 forks source link

iceprog sram programming does not work with icestick #121

Closed ekordas closed 6 years ago

ekordas commented 6 years ago

I got a new Icestick to start experimenting with verilog. The normal programming works fine, but programming it with iceprog -S file.bin does not work. The leds on the stick then go into the half-on state and nothing else happens. Also it prints cdone: low at the end. Attached is a wireshark usb capture, if that helps. program_iceprog_sram.zip

daveshah1 commented 6 years ago

I don't think SRAM programming is possible on the icestick, without hardware modifications (swapping MOSI and MISO, and removing the CS connection the flash chip). You will have to use flash programming only otherwise.

cliffordwolf commented 6 years ago

Quoting from iceprog --help output:

Notes for iCEstick (iCE40HX-1k devel board):
  An unmodified iCEstick can only be programmed via the serial flash.
  Direct programming of the SRAM is not supported. For direct SRAM
  programming the flash chip and one zero ohm resistor must be desoldered
  and the FT2232H SI pin must be connected to the iCE SPI_SI pin, as shown
  in this picture:
  http://www.clifford.at/gallery/2014-elektronik/IMG_20141115_183838