Skip to content

Commit

Permalink
flash: use the handle
Browse files Browse the repository at this point in the history
jordens committed May 16, 2016
1 parent 3ae44e7 commit 18878ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions artiq/frontend/artiq_flash.py
Original file line number Diff line number Diff line change
@@ -98,7 +98,6 @@ def main():
bin = os.path.join(opts.dir, "top.bin")
if not os.access(bin, os.R_OK):
bin_handle, bin = tempfile.mkstemp()
bin_handle.close()
bit = os.path.join(opts.dir, "top.bit")
conv = True
prog.append("jtagspi_program {} 0x{:x}".format(
@@ -122,7 +121,7 @@ def main():
prog.append("exit")
try:
if conv:
bit2bin(bit, bin)
bit2bin(bit, bin_handle)
subprocess.check_call([
"openocd",
"-f", os.path.join("board", opts.target + ".cfg"),

0 comments on commit 18878ba

Please sign in to comment.