diff --git a/tools/pyboard.py b/tools/pyboard.py index 55c00fbca1944..2dabcc8be9ae8 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -268,7 +268,7 @@ def __init__( import serial # Set options, and exclusive if pyserial supports it - serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1} + serial_kwargs = {"baudrate": baudrate, "interCharTimeout": 1, "timeout": 10} if serial.__version__ >= "3.3": serial_kwargs["exclusive"] = exclusive