Merge pull request #662 from fidergo-stephane-gourichon/dfu-util_with_-R

Unconditionally ask dfu-util to "Issue USB Reset"
This commit is contained in:
enjoy-digital 2020-10-07 12:37:53 +02:00 committed by GitHub
commit 83b4447f0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,4 +21,4 @@ class DFUProg(GenericProgrammer):
def load_bitstream(self, bitstream_file):
subprocess.call(["cp", bitstream_file, bitstream_file + ".dfu"])
subprocess.call(["dfu-suffix", "-v", self.vid, "-p", self.pid, "-a", bitstream_file + ".dfu"])
subprocess.call(["dfu-util", "--download", bitstream_file + ".dfu"])
subprocess.call(["dfu-util", "--download", bitstream_file + ".dfu", "-R"])