Skip to content

Commit

Permalink
--no-boot option
Browse files Browse the repository at this point in the history
  • Loading branch information
emard committed Jul 28, 2018
1 parent 9b71b91 commit 6798b2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions programmer/tinyprog/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ def parse_int(str_value):
parser.add_argument("-b", "--boot", action="store_true",
help="command the FPGA board to exit the "
"bootloader and load the user configuration")
parser.add_argument("--no-boot", action="store_true",
help="don't boot after programing")
parser.add_argument("-c", "--com", type=str, help="serial port name")
parser.add_argument("-i", "--id", type=str, help="FPGA board ID")
parser.add_argument("-d", "--device", type=str, default="1d50:6130",
Expand Down Expand Up @@ -331,7 +333,8 @@ def progress(info):
if not fpga.program_bitstream(addr, bitstream):
sys.exit(1)

fpga.boot()
if not args.no_boot:
fpga.boot()
print("")
sys.exit(0)

Expand All @@ -340,7 +343,6 @@ def progress(info):
print(" Booting " + str(active_port))
with active_port:
fpga = TinyProg(active_port)
fpga.boot()

print("")

Expand Down

0 comments on commit 6798b2a

Please sign in to comment.