From 7dfe0be7a5b2e75dbe0cee4fc03ce9d681449930 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 3 Jul 2019 17:44:20 +0800 Subject: [PATCH] kc705: fix openocd command --- nmigen_boards/kc705.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen_boards/kc705.py b/nmigen_boards/kc705.py index 2f3385e..df3a492 100644 --- a/nmigen_boards/kc705.py +++ b/nmigen_boards/kc705.py @@ -37,7 +37,7 @@ class KC705Platform(Xilinx7SeriesPlatform): openocd = os.environ.get("OPENOCD", "openocd") with products.extract("{}.bit".format(name)) as bitstream_filename: subprocess.run([openocd, "-c", - "source [find board/kc705.cfg]; init; pld load 0 bitstream_filename; exit".format(bitstream_filename)], check=True) + "source [find board/kc705.cfg]; init; pld load 0 {}; exit".format(bitstream_filename)], check=True) if __name__ == "__main__": -- 2.30.2