sqrl_acorn: the litefury (cle-101 variant is a xc7a100t, so use the right proxy when flashing
This commit is contained in:
parent
11bf6ea703
commit
9d083eb8bd
|
@ -116,6 +116,8 @@ class Platform(Xilinx7SeriesPlatform):
|
||||||
"cle-215+": "xc7a200t-fbg484-3"
|
"cle-215+": "xc7a200t-fbg484-3"
|
||||||
}[variant]
|
}[variant]
|
||||||
|
|
||||||
|
self.variant = variant
|
||||||
|
|
||||||
Xilinx7SeriesPlatform.__init__(self, device, _io, toolchain=toolchain)
|
Xilinx7SeriesPlatform.__init__(self, device, _io, toolchain=toolchain)
|
||||||
self.add_extension(_serial_io)
|
self.add_extension(_serial_io)
|
||||||
self.add_extension(_sdcard_io)
|
self.add_extension(_sdcard_io)
|
||||||
|
@ -146,8 +148,13 @@ class Platform(Xilinx7SeriesPlatform):
|
||||||
]
|
]
|
||||||
|
|
||||||
def create_programmer(self, name='openocd'):
|
def create_programmer(self, name='openocd'):
|
||||||
|
proxy = {
|
||||||
|
"cle-101": "bscan_spi_xc7a100t.bit",
|
||||||
|
"cle-215": "bscan_spi_xc7a200t.bit",
|
||||||
|
"cle-215+": "bscan_spi_xc7a200t.bit"
|
||||||
|
}[self.variant]
|
||||||
if name == 'openocd':
|
if name == 'openocd':
|
||||||
return OpenOCD("openocd_xc7_ft232.cfg", "bscan_spi_xc7a200t.bit")
|
return OpenOCD("openocd_xc7_ft232.cfg", proxy)
|
||||||
elif name == 'vivado':
|
elif name == 'vivado':
|
||||||
# TODO: some board versions may have s25fl128s
|
# TODO: some board versions may have s25fl128s
|
||||||
return VivadoProgrammer(flash_part='s25fl256sxxxxxx0-spi-x1_x2_x4')
|
return VivadoProgrammer(flash_part='s25fl256sxxxxxx0-spi-x1_x2_x4')
|
||||||
|
|
Loading…
Reference in New Issue