def toolchain_program(self, products, name):
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run(["cp", bitstream_filename, "/dev/ttyACM0"], check=True)
+ subprocess.check_call(["cp", bitstream_filename, "/dev/ttyACM0"])
if __name__ == "__main__":
def toolchain_program(self, products, name):
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run(["cp", bitstream_filename, "/dev/ttyACM0"], check=True)
+ subprocess.check_call(["cp", bitstream_filename, "/dev/ttyACM0"])
if __name__ == "__main__":
def toolchain_program(self, products, name):
iceburn = os.environ.get("ICEBURN", "iCEburn")
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run([iceburn, "-evw", bitstream_filename], check=True)
+ subprocess.check_call([iceburn, "-evw", bitstream_filename])
if __name__ == "__main__":
iceprog = os.environ.get("ICEPROG", "iceprog")
with products.extract("{}.bin".format(name)) as bitstream_filename:
# TODO: this should be factored out and made customizable
- subprocess.run([iceprog, "-S", bitstream_filename], check=True)
+ subprocess.check_call([iceprog, "-S", bitstream_filename])
if __name__ == "__main__":
def toolchain_program(self, products, name):
iceprog = os.environ.get("ICEPROG", "iceprog")
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run([iceprog, bitstream_filename], check=True)
+ subprocess.check_call([iceprog, bitstream_filename])
if __name__ == "__main__":
def toolchain_program(self, products, name):
iceprog = os.environ.get("ICEPROG", "iceprog")
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run([iceprog, bitstream_filename], check=True)
+ subprocess.check_call([iceprog, bitstream_filename])
if __name__ == "__main__":
def toolchain_program(self, products, name):
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 {}; exit".format(bitstream_filename)], check=True)
+ subprocess.check_call([openocd,
+ "-c", "source [find board/kc705.cfg]; init; pld load 0 {}; exit"
+ .format(bitstream_filename)
+ ])
if __name__ == "__main__":
def toolchain_program(self, products, name):
tinyprog = os.environ.get("TINYPROG", "tinyprog")
with products.extract("{}.bin".format(name)) as bitstream_filename:
- subprocess.run([tinyprog, "-p", bitstream_filename], check=True)
+ subprocess.check_call([tinyprog, "-p", bitstream_filename])
if __name__ == "__main__":
openocd = os.environ.get("OPENOCD", "openocd")
with products.extract("{}-openocd.cfg".format(name), "{}.svf".format(name)) \
as (config_filename, vector_filename):
- subprocess.run([openocd,
+ subprocess.check_call([openocd,
"-f", config_filename,
"-c", "transport select jtag; init; svf -quiet {}; exit".format(vector_filename)
- ], check=True)
+ ])
if __name__ == "__main__":