-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nrfutil uses subcommands incompatible with the latest version #19511
Comments
Why not check from the RIOT build system which version of nrfutil is installed and adapt the command line accordingly ? |
Probably, but given it's nonfree software I'll only touch it when absolutely necessary. The fact that it writes to ~/.nrfutil without asking doesn't make me any happier about using it, and the fact that it tries to create a file /tmp/nrfutil on self-upgrade (tough look, I have a dir there, may I introduce you to mktmp...) gives me serious doubt about its quality of implementation to the point where I'm not sure I'd support it in RIOT at all. |
... and it also sometimes fails silently (eg. when the USB stack of the target device is just hanging). Great engineering. But anyhow: Compatible functionality can be restored by running |
19346: pkg/tinydtls: allow build for AVR r=benpicco a=benpicco 19512: SUBSYSTEMS.md: add jia200x to subsystems r=benpicco a=jia200x 19513: boards/nrf52840dongle/doc: Update nrfutil pointers r=benpicco a=chrysn ### Contribution description Nordic changed its nrfutil; this change adjust to it. I'm not fully happy with recommending that tool at all due to its bad quality (see rambling in #19511), but short of soldering on a debug header or touch-probing it with wires it's the only way in to the device. I may later add follow-up recommendations to switch to riotboot, but this now at least fixes the immediate issue. ### Testing procedure * Look at the updated documentation. ### Issues/PRs references Closes: #19511 19514: dist/testbed-support: remove obsolete boards from iotlab archi r=benpicco a=aabadie Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com> Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de> Co-authored-by: Jose Alamos <jose@alamos.cc> Co-authored-by: chrysn <chrysn@fsfe.org> Co-authored-by: Alexandre Abadie <alexandre.abadie@inria.fr>
Nordic updated their nrfutil:
python3 -m virtualenv --python /usr/bin/python3.10 /tmp/nrfutil
-- unlike the builtin venv, virtualenv can create those even for older Python versions.AFAICT this only affects the nrf52840dongle as it's the only board that can actually use the (non-adafruit, they forked off some time ago) nrfutil.
I have no clear way forward. Might be "ditch nrfutil and focus on riotboot", but it'd be great to have some way to migrate without using old software and without using an external programmer.
The text was updated successfully, but these errors were encountered: