Merge pull request #520 from josuah/crosslink_nx_prog_flash
targets/lattice_crosslink_nx_evn: fix arguments in flash programming
This commit is contained in:
commit
a9ecbffe8f
|
@ -136,7 +136,7 @@ def main():
|
||||||
if args.load:
|
if args.load:
|
||||||
prog = soc.platform.create_programmer(args.prog_target, args.programmer)
|
prog = soc.platform.create_programmer(args.prog_target, args.programmer)
|
||||||
if args.programmer == "ecpprog" and args.prog_target == "flash":
|
if args.programmer == "ecpprog" and args.prog_target == "flash":
|
||||||
prog.flash(address=args.address, bitstream=builder.get_bitstream_filename(mode="sram"))
|
prog.flash(args.address, builder.get_bitstream_filename(mode="sram"))
|
||||||
else:
|
else:
|
||||||
prog.load_bitstream(builder.get_bitstream_filename(mode="sram"))
|
prog.load_bitstream(builder.get_bitstream_filename(mode="sram"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue