Skip to content

Commit

Permalink
additional sleep after USB reset before firmware flashing - needed by…
Browse files Browse the repository at this point in the history
… snap
  • Loading branch information
DominikN committed Apr 14, 2024
1 parent 9e5897c commit be82e5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rosbot_xl_utils/rosbot_xl_utils/flash-firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def exit_bootloader_mode(self):
def flash_firmware(self):
self.enter_bootloader_mode()
sh.usbreset("0403:6015")
time.sleep(2.0)
# workaround: using pyftdi causes laggy serial port.
# This line is like unplug/plug for USB port
sh.stm32flash(self.port, "-v", w=self.binary_file, b="115200", _out=sys.stdout)
Expand Down

0 comments on commit be82e5e

Please sign in to comment.