Check nrfutil version.

This commit is contained in:
Jean-Michel
2020-03-13 11:48:08 +01:00
committed by Jean-Michel Picod
parent ec1ce661d3
commit 1768934402

View File

@@ -528,6 +528,10 @@ class OpenSKInstaller:
assert_mandatory_binary("nrfutil") assert_mandatory_binary("nrfutil")
assert_python_library("intelhex") assert_python_library("intelhex")
assert_python_library("nordicsemi.lister") assert_python_library("nordicsemi.lister")
nrfutil_version = __import__("nordicsemi").version.NRFUTIL_VERSION
if not nrfutil_version.startswith("6."):
fatal(("You need to install nrfutil python3 package v6.0 or above. "
"Found: {}".format(nrfutil_version)))
if not SUPPORTED_BOARDS[self.args.board].nordic_dfu: if not SUPPORTED_BOARDS[self.args.board].nordic_dfu:
fatal("This board doesn't support flashing over DFU.") fatal("This board doesn't support flashing over DFU.")