FT232H over USB from linux computer used to program Olimex iCE40HX1K-EVB flash chip. First applied 5v power from USB to pin 1 and GND to pin 2 of the BH34R extension header. Then connected the first 4 pins of the FT232H's AD port to the olimex's UEXT header like:
FT232H | Olimex UEXT |
---|---|
ADO (CLK) | 9 (iCE40-SCK) |
AD1 (MOSI) | 8 (iCE40-SDO) |
AD2 (MISO) | 7 (iCE40-SDI) |
AD3 (CS) | 10 (iCE40-SS) |
Then after build the blinky test program, then before using FLASHROM I need to first expand the blinky.bin image from 32kB to be 2MB by using command:
truncate -s 2M blinky.bin
Note: I'm using flashrom because iceprog was giving me issues. I can now run flashrom directly:
flashrom -p ft2232_spi:type=232H -w blinky.bin
which produces this output:
flashrom v1.5.1 (git:v1.5.1) on Linux 6.13.4-arch1-1 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Found Eon flash chip "EN25QH16" (2048 kB, SPI) on ft2232_spi.
===
This flash part has status UNTESTED for operations: WP
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
please email a report to [email protected] if any of the above operations
work correctly for you with this flash chip. Please include the flashrom log
file for all operations you tested (see the man page for details), and mention
which mainboard or programmer you tested in the subject line.
You can also try to follow the instructions here:
https://www.flashrom.org/contrib_howtos/how_to_mark_chip_tested.html
Thanks for your help!
Reading old flash chip contents... done.
Updating flash chip contents...
It seemed to have hung after that, but I pressed Ctrl-C and amazingly it would now run the blinky test.