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:
parent
a9234a8793
commit
e47f84ea79
|
@ -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"])
|
||||||
|
|
Loading…
Reference in New Issue