From c812321a937c95abed5b233619d8043fcae7c1a5 Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Fri, 7 Sep 2018 04:05:49 -0400 Subject: [PATCH] lattice/programmer: Use --program-image option with tinyprog if address is given. --- litex/build/lattice/programmer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/litex/build/lattice/programmer.py b/litex/build/lattice/programmer.py index 6b066cf28..07cc0d1ff 100644 --- a/litex/build/lattice/programmer.py +++ b/litex/build/lattice/programmer.py @@ -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