Skip to content

Commit e532092

Browse files
committed
artemis_svl: Print an error if the bin file is not found.
1 parent 87ca8d8 commit e532092

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/artemis/artemis_svl.py

+4
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

0 commit comments

Comments
 (0)