From 9d083eb8bd165355697d52df49acc88f59f52241 Mon Sep 17 00:00:00 2001 From: Xilokar Date: Fri, 22 Mar 2024 09:55:49 +0100 Subject: [PATCH] sqrl_acorn: the litefury (cle-101 variant is a xc7a100t, so use the right proxy when flashing --- litex_boards/platforms/sqrl_acorn.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/litex_boards/platforms/sqrl_acorn.py b/litex_boards/platforms/sqrl_acorn.py index 1c15921..48a8c15 100644 --- a/litex_boards/platforms/sqrl_acorn.py +++ b/litex_boards/platforms/sqrl_acorn.py @@ -116,6 +116,8 @@ class Platform(Xilinx7SeriesPlatform): "cle-215+": "xc7a200t-fbg484-3" }[variant] + self.variant = variant + Xilinx7SeriesPlatform.__init__(self, device, _io, toolchain=toolchain) self.add_extension(_serial_io) self.add_extension(_sdcard_io) @@ -146,8 +148,13 @@ class Platform(Xilinx7SeriesPlatform): ] 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': - return OpenOCD("openocd_xc7_ft232.cfg", "bscan_spi_xc7a200t.bit") + return OpenOCD("openocd_xc7_ft232.cfg", proxy) elif name == 'vivado': # TODO: some board versions may have s25fl128s return VivadoProgrammer(flash_part='s25fl256sxxxxxx0-spi-x1_x2_x4')