From 445338e2e79c667405a89fb90dcdce0c28faf8f6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 22 May 2020 14:12:45 +0200 Subject: [PATCH] platforms/nexys_video: add specific openocd cfg (use channel 1). --- litex_boards/platforms/nexys_video.py | 2 +- litex_boards/prog/openocd_nexys_video.cfg | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 litex_boards/prog/openocd_nexys_video.cfg diff --git a/litex_boards/platforms/nexys_video.py b/litex_boards/platforms/nexys_video.py index d436cb0..3282f87 100644 --- a/litex_boards/platforms/nexys_video.py +++ b/litex_boards/platforms/nexys_video.py @@ -241,7 +241,7 @@ class Platform(XilinxPlatform): self.add_platform_command("set_property INTERNAL_VREF 0.750 [get_iobanks 35]") def create_programmer(self): - return OpenOCD("openocd_xc7_ft2232.cfg", "bscan_spi_xc7a200t.bit") + return OpenOCD("openocd_nexys_video.cfg", "bscan_spi_xc7a200t.bit") def do_finalize(self, fragment): XilinxPlatform.do_finalize(self, fragment) diff --git a/litex_boards/prog/openocd_nexys_video.cfg b/litex_boards/prog/openocd_nexys_video.cfg new file mode 100644 index 0000000..c7e09f1 --- /dev/null +++ b/litex_boards/prog/openocd_nexys_video.cfg @@ -0,0 +1,14 @@ +interface ftdi +ftdi_vid_pid 0x0403 0x6010 +ftdi_channel 1 +ftdi_layout_init 0x00e8 0x60eb +reset_config none + +source [find cpld/xilinx-xc7.cfg] +source [find cpld/jtagspi.cfg] +adapter_khz 25000 + +proc fpga_program {} { + global _CHIPNAME + xc7_program $_CHIPNAME.tap +}