From: Boris Shingarov Date: Fri, 23 Sep 2022 20:10:04 +0000 (-0400) Subject: Add support for flashing the s25fl256s onboard Genesys2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c3f7d75d5fdf25b46d2e478eed45e725ff7fdb3;p=microwatt.git Add support for flashing the s25fl256s onboard Genesys2 This includes the cable configuration, additions to the Python script, and the jtagspi proxy bitstream. The single-tap version is not included because 0.10 supported only 3-byte addresses which is unusable on the s25fl256s anyway. Signed-off-by: Boris Shingarov --- diff --git a/openocd/bscan_spi_xc7k325t_openocd_v0.11.bit b/openocd/bscan_spi_xc7k325t_openocd_v0.11.bit new file mode 100644 index 0000000..fe36b17 Binary files /dev/null and b/openocd/bscan_spi_xc7k325t_openocd_v0.11.bit differ diff --git a/openocd/flash-arty b/openocd/flash-arty index 6d4d13d..9d27c8a 100755 --- a/openocd/flash-arty +++ b/openocd/flash-arty @@ -44,8 +44,10 @@ elif args.fpga.lower() == "a100": proxy = "bscan_spi_xc7a100t{}.bit".format(version) elif args.fpga.lower() == "a200": proxy = "bscan_spi_xc7a200t{}.bit".format(version) +elif args.fpga.lower() == "k325": + proxy = "bscan_spi_xc7k325t{}.bit".format(version) else: - print("error: specify a35, a100 or a200 when flashing") + print("error: specify a35, a100, a200 or k325 when flashing") sys.exit() proxy = os.path.join(BASE, proxy) diff --git a/openocd/genesys2.cfg b/openocd/genesys2.cfg new file mode 100644 index 0000000..fc6a29f --- /dev/null +++ b/openocd/genesys2.cfg @@ -0,0 +1,6 @@ +interface ftdi +ftdi_vid_pid 0x0403 0x6010 +ftdi_channel 1 +ftdi_layout_init 0x00e8 0x60eb +reset_config none +adapter_khz 25000