Skip to content

Commit 60dccb3

Browse files
authored
Merge pull request #67 from konkers/pr/svl
Improve artemis_svl error reporting.
2 parents 87ca8d8 + 591a15b commit 60dccb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/artemis/artemis_svl.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import sys
4040
import time
4141
import math
42+
import os.path
4243
from sys import exit
4344

4445
# ***********************************************************************************
@@ -316,6 +317,9 @@ def main():
316317
num_tries = 3
317318

318319
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()
319323

320324
for _ in range(num_tries):
321325

@@ -331,7 +335,7 @@ def main():
331335
if( bl_failed == False ):
332336
break
333337

334-
except:
338+
except serial.SerialException:
335339
phase_serial_port_help()
336340

337341
exit()

0 commit comments

Comments
 (0)