Merge pull request #61 from ilya-epifanov/ecp5-evn-programming
programming the ECP5-EVN flash through the OpenOCD JTAG-SPI proxy
This commit is contained in:
commit
ccfc021c1a
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
from litex.build.generic_platform import *
|
from litex.build.generic_platform import *
|
||||||
from litex.build.lattice import LatticePlatform
|
from litex.build.lattice import LatticePlatform
|
||||||
|
from litex.build.lattice.programmer import OpenOCDJTAGProgrammer
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
# IOs ----------------------------------------------------------------------------------------------
|
# IOs ----------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -126,7 +129,5 @@ class Platform(LatticePlatform):
|
||||||
return LatticePlatform.request(self, *args, **kwargs)
|
return LatticePlatform.request(self, *args, **kwargs)
|
||||||
|
|
||||||
def create_programmer(self):
|
def create_programmer(self):
|
||||||
pass
|
trellis = os.environ.get("TRELLIS", "/usr/share/trellis")
|
||||||
# fdir = os.path.join(
|
return OpenOCDJTAGProgrammer(os.path.join(trellis, "misc", "openocd", "ecp5-evn.cfg"), "bscan_spi_lfe5um5g85f.svf")
|
||||||
# os.path.abspath(os.path.dirname(__file__)), "prog")
|
|
||||||
# return OpenOCD(os.path.join(fdir, "ecp5-evn.cfg"))
|
|
||||||
|
|
Loading…
Reference in New Issue