mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/openfpgaloader: Add unprotect_flash capability.
This commit is contained in:
parent
fac003bbf9
commit
e499dd84b5
1 changed files with 3 additions and 1 deletions
|
@ -29,13 +29,15 @@ class OpenFPGALoader(GenericProgrammer):
|
|||
cmd = self.cmd + ["--bitstream", bitstream_file]
|
||||
self.call(cmd)
|
||||
|
||||
def flash(self, address, data_file, external=False, verify=False):
|
||||
def flash(self, address, data_file, external=False, unprotect_flash=False, verify=False):
|
||||
cmd = self.cmd + ["--write-flash", "--bitstream", data_file]
|
||||
if external:
|
||||
cmd += ["--external-flash"]
|
||||
if address:
|
||||
cmd += ["--offset"]
|
||||
cmd += [str(address)]
|
||||
if unprotect_flash:
|
||||
cmd += ["--unprotect-flash"]
|
||||
if verify:
|
||||
cmd += ["--verify"]
|
||||
self.call(cmd)
|
||||
|
|
Loading…
Reference in a new issue