bscan_spi_bitstreams
bscan_spi_bitstreams copied to clipboard
adapted lattice_bscan_spi.py for LFE5UM5G-85F
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.
@HarryHo90sHK could you please test that it still works for LFE5UM-45F ?
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 Thanks for the comment. Is the said IR command different from the one I stated on README, i.e. 0x32?
@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 Yes, openocd supports more programmers. I'm trying to figure out if an svf that will just use this custom command will work.
It turned out that adding support in directly openocd was easier.