Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Secure DFU Error: Got unexpected extra argument (private.key)

In step A1.   ( https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader )

nrfutil.exe keys generate private.key

I got

C:\Users\george>nrfutil keys generate private.key
Usage: nrfutil keys [OPTIONS] KEY_FILE

Error: Got unexpected extra argument (private.key)


What is the problem here ?

Parents
  • Hi George,

    I wonder if you have two instances of nrfutil installed, and that the one you are using is older than the one installed by pip (3.4.0 according to the second screenshot in your question). The reason is that the Usage string in your first question does not match nrfutil version 3.4.0. It should have been "Usage: nrfutil keys generate [OPTIONS] KEY_FILE". Can you verify the location of the nrfutil you are using by calling for example "which nrfutil"? You can also print the version number using "nrfutil version".

Reply
  • Hi George,

    I wonder if you have two instances of nrfutil installed, and that the one you are using is older than the one installed by pip (3.4.0 according to the second screenshot in your question). The reason is that the Usage string in your first question does not match nrfutil version 3.4.0. It should have been "Usage: nrfutil keys generate [OPTIONS] KEY_FILE". Can you verify the location of the nrfutil you are using by calling for example "which nrfutil"? You can also print the version number using "nrfutil version".

Children
Related