We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 893f103 commit 9fa4f37Copy full SHA for 9fa4f37
tools/ambiq/ambiq_bin2board.py
@@ -380,7 +380,7 @@ def upload(args, verboseprint):
380
381
#Check to see if the com port is available
382
try:
383
- with serial.Serial(args.port, args.baud, timeout=1) as ser:
+ with serial.Serial(args.port, args.baud, timeout=connection_timeout) as ser:
384
pass
385
except:
386
@@ -414,7 +414,7 @@ def upload(args, verboseprint):
414
while loadTries < 3:
415
loadSuccess = False
416
417
- with serial.Serial(args.port, args.baud, timeout=0.5) as ser:
418
#DTR is driven low when serial port open. DTR has now pulled RST low.
419
420
time.sleep(0.005) #3ms and 10ms work well. Not 50, and not 0.
0 commit comments