bscan_spi_bitstreams icon indicating copy to clipboard operation
bscan_spi_bitstreams copied to clipboard

adapted lattice_bscan_spi.py for LFE5UM5G-85F

Open ilya-epifanov opened this issue 4 years ago • 6 comments

Had to spend some time debugging the thing, moved some logic to sync domain and added a 1 clock cycle wait at the end of the transaction.

Also, cleaned up handling of multiple devices and parallel build.

ilya-epifanov avatar Mar 28 '20 11:03 ilya-epifanov

@HarryHo90sHK could you please test that it still works for LFE5UM-45F ?

ilya-epifanov avatar Mar 28 '20 11:03 ilya-epifanov

There is apparently an (undocumented) IR command to connect the SPI bus to DR (according to @adamgreig). That should make this PR and https://github.com/quartiq/bscan_spi_bitstreams/blob/master/lattice_bscan_spi.py obsolete.

jordens avatar Aug 20 '20 11:08 jordens

@jordens Thanks for the comment. Is the said IR command different from the one I stated on README, i.e. 0x32?

HarryMakes avatar Aug 21 '20 01:08 HarryMakes

@HarryMakes is there still an need/interest for this, given that ecpprog etc use the ecp5 features directly? E.g. https://github.com/gregdavill/ecpprog/blob/8af8863855599f4b8ef8f46a336408b1aba60e9d/ecpprog/ecpprog.c#L683

jordens avatar Mar 07 '23 09:03 jordens

@jordens Yes, openocd supports more programmers. I'm trying to figure out if an svf that will just use this custom command will work.

marmeladapk avatar Mar 08 '23 23:03 marmeladapk

It turned out that adding support in directly openocd was easier.

marmeladapk avatar Mar 16 '23 14:03 marmeladapk