We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87ca8d8 + 591a15b commit 60dccb3Copy full SHA for 60dccb3
tools/artemis/artemis_svl.py
@@ -39,6 +39,7 @@
39
import sys
40
import time
41
import math
42
+import os.path
43
from sys import exit
44
45
# ***********************************************************************************
@@ -316,6 +317,9 @@ def main():
316
317
num_tries = 3
318
319
print('\n\nArtemis SVL Bootloader')
320
+ if not os.path.exists(args.binfile):
321
+ print("Bin file {} does not exits.".format(args.binfile))
322
+ exit()
323
324
for _ in range(num_tries):
325
@@ -331,7 +335,7 @@ def main():
331
335
if( bl_failed == False ):
332
336
break
333
337
334
- except:
338
+ except serial.SerialException:
339
phase_serial_port_help()
340
341
exit()
0 commit comments