Skip to content
Snippets Groups Projects
Commit 17689344 authored by Jean-Michel's avatar Jean-Michel Committed by Jean-Michel Picod
Browse files

Check nrfutil version.

parent ec1ce661
No related branches found
No related tags found
No related merge requests found
...@@ -528,6 +528,10 @@ class OpenSKInstaller: ...@@ -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.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment