lattice/programmer: Use --program-image option with tinyprog if address is given.

This commit is contained in:
William D. Jones 2018-09-07 04:05:49 -04:00
parent c5a2d6f3ec
commit c812321a93
1 changed files with 3 additions and 2 deletions

View File

@ -76,8 +76,9 @@ class TinyProgProgrammer(GenericProgrammer):
# Ditto with user data.
subprocess.call(["tinyprog", "-u", bitstream_file])
else:
# Provide override so user can program wherever they wish.
subprocess.call(["tinyprog", "-a", str(address), "-p",
# Provide override so user can program wherever they wish (outside
# of bootloader region).
subprocess.call(["tinyprog", "-a", str(address), "--program-image",
bitstream_file])
# Force user image to boot if a user reset tinyfpga, the bootloader