I am using nRF52840 DK and SDK17.1.0.
Have python3.11 installed on my macbook air(MacOS Monterey 12.0.1).
Also had nrf5.2.0 installed in dec last year.
Now I want to generate key for Secure DFU update via BLE. So as per the nrf document, nRF Util 7.0.0 version is needed for DFU functionality.
I tried uninstalling 5.2.0 version and installing by --upgrade or install commands with --no-cache-dir command. It keeps installing version 5.2.0.
And then while generating private key it gives these syntax errors
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nordicsemi/__main__.py", line 434, in generate
signer.gen_key(key_file)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/nordicsemi/dfu/signing.py", line 79, in gen_key
sk_file.write(self.sk.to_pem())
TypeError: write() argument must be str, not bytes
I was able to remove these errors by changing the code.but then it gave more such errors.
I even downloaded nrfutil from https://www.nordicsemi.com/Products/Development-tools/nRF-Util site. I added this file to /usr/local/bin but it didn't solve the issue. Please suggest how to install nRFutil 7.0.0 version so that I can go ahead with generating private and public keys for DFU.
Should I uninstall Python 3.11 and re-install that again? Will that take care of adding latest nrfutil? So am I not adding the file to the correct path? Or is there some other command to install version 7.0.0?
Thanks