Unconditionally ask dfu-util to "Issue USB Reset signalling once we're finished".

Some host machines need it.
If issuing -R always does not cause any trouble, then do it.
This commit is contained in:
Stephane Gourichon 2020-10-05 17:16:10 +02:00
parent a9234a8793
commit e47f84ea79
1 changed files with 1 additions and 1 deletions

View File

@ -21,4 +21,4 @@ class DFUProg(GenericProgrammer):
def load_bitstream(self, bitstream_file): def load_bitstream(self, bitstream_file):
subprocess.call(["cp", bitstream_file, bitstream_file + ".dfu"]) 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-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"])