Skip to content

Add adafruit-nrfutil to ide to allow working with Adafruit_nRF52 boards. #46

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

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Add adafruit-nrfutil to ide to allow working with Adafruit_nRF52 boards. #46

merged 1 commit into from
Jul 2, 2023

Conversation

SuperNinja-4965
Copy link
Contributor

Closes #36.
Includes the binary into the flatpak that is required to use Adafruit_nRF52 boards with the IDE.
Once the board has been installed into the ide through the board manager the IDE will work with these boards now.

@flathubbot
Copy link
Contributor

Started test build 49872

@flathubbot
Copy link
Contributor

Build 49872 successful
To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/32483/cc.arduino.arduinoide.flatpakref

@A6GibKm
Copy link
Collaborator

A6GibKm commented Jul 1, 2023

Hello, did you test that this works as expected?

@SuperNinja-4965
Copy link
Contributor Author

SuperNinja-4965 commented Jul 1, 2023

Hello, did you test that this works as expected?

I have yes.

To use the Adafruit boards all that is required is to add https://adafruit.github.io/arduino-board-index/package_adafruit_index.json as an additional board and then install Adafruit nRF52 by Adafruit in the boards manager meaning that the step of installing the tool by pip (pip3 install --user adafruit-nrfutil) is not required by flatpak users.

Without this binary included the IDE will fail verifying or uploading with the error on these boards:

exec: "adafruit-nrfutil": executable file not found in $PATH
Error compiling for board Adafruit Feather nRF52832.

Hence closing #36

@A6GibKm A6GibKm merged commit 66edc68 into flathub:master Jul 2, 2023
@A6GibKm
Copy link
Collaborator

A6GibKm commented Jul 2, 2023

Thanks! Just to be clear, the experience installing the nRF52 is identically to the one with arduino installed directly on the host with this patch? Or it could use a note in the readme?

@SuperNinja-4965
Copy link
Contributor Author

SuperNinja-4965 commented Jul 2, 2023

Thanks! Just to be clear, the experience installing the nRF52 is identically to the one with arduino installed directly on the host with this patch? Or it could use a note in the readme?

The installation steps are identical except the step of installing the pip package that provides the adafruit-nrfutil is entirely optional (step 2 linked here: https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide/arduino-bsp-setup#2-linux-only-adafruit-nrfutil-tool-installation-2860591).
The only effect installing the pip package would have on the system would make the binary available outside of flatpak.
This pr effectively makes the board installation process identical to the installation process on Windows and MacOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using adafruit-nrfutil from flatpak IDE
3 participants