diff --git a/tools/artemis/artemis_svl.py b/tools/artemis/artemis_svl.py index 327e08e..4c10aa8 100644 --- a/tools/artemis/artemis_svl.py +++ b/tools/artemis/artemis_svl.py @@ -151,7 +151,7 @@ def main(): print('Connecting over serial port {}...'.format(args.port), flush=True) # Set a timeout - global_timeout = 0.05 # tested as low as 0.03 on some machines - 50 ms works well, 30 ms works sometimes, this delay occurs between the USB-serial converter and when python can see it + global_timeout = float(args.globaltimeout) # tested as low as 0.03 on some machines - 50 ms works well, 30 ms works sometimes, this delay occurs between the USB-serial converter and when python can see it verboseprint('Using Serial timeout: ' + str(global_timeout)) # Now open the port for bootloading @@ -342,6 +342,8 @@ def main(): parser.add_argument("-t", "--tries", default=20, help="How many baud rate negotiation messages to send before failing", type=int) + parser.add_argument("-g", "--globaltimeout", default=0.05, help="Timeout between baud rate negotiation messages, in seconds (default 0.05)") + if len(sys.argv) < 2: print("No port selected. Detected Serial Ports:") devices = list_ports.comports() diff --git a/tools/artemis/linux/artemis_svl b/tools/artemis/linux/artemis_svl index d04c282..07d3529 100755 Binary files a/tools/artemis/linux/artemis_svl and b/tools/artemis/linux/artemis_svl differ diff --git a/tools/artemis/macosx/artemis_svl b/tools/artemis/macosx/artemis_svl index 9787d2f..7b586c8 100755 Binary files a/tools/artemis/macosx/artemis_svl and b/tools/artemis/macosx/artemis_svl differ diff --git a/tools/artemis/windows/artemis_svl.exe b/tools/artemis/windows/artemis_svl.exe index 0822274..3860712 100644 Binary files a/tools/artemis/windows/artemis_svl.exe and b/tools/artemis/windows/artemis_svl.exe differ