kc705: fix openocd command
authorSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 3 Jul 2019 09:44:20 +0000 (17:44 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 3 Jul 2019 09:44:20 +0000 (17:44 +0800)
nmigen_boards/kc705.py

index 2f3385e0e84c707691c1084d6dec69b0c809a3a2..df3a492dc9658b61e2fbb96006220b0d403ace7a 100644 (file)
@@ -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__":