natebc
May 13, 2021, 9:54pm
#1
I'm using an Itsy Bitsy nRF52840 and I have installed the board files required but I seem to be missing some files in one of the libraries that are in the GitHub repo.
These are the files on my computer:
and these are the files located in the GitHub repo. I highlighted the missing ones:
The Arduino IDE indicates that I am on the latest version of the board files (0.21.0) But I seem to be missing those security files. Ive tried to add them but the IDE seems to have a fit when I try to do that. Im using the Arduino Pro IDE version 2.0.0-beta.5
Your post was MOVED to a more suitable location.
Could you also review How to get the best out of this forum as it will help you find your way around.
pert
May 13, 2021, 10:02pm
#3
It's because they were added after the time of the 0.21.0 release. If you check the repository at the time of the 0.21.0 tag, you'll see it's just the same as on your computer:
https://github.com/adafruit/Adafruit_nRF52_Arduino/tree/0.21.0/libraries/Bluefruit52Lib/src
The pull request that added those files to the library:
adafruit:master
← adafruit:develop
opened 04:36PM - 19 Mar 20 UTC
Fix #39 , fix #124
**NOTE**: Although the work is complete, DONT merge this … yet. Due to the Arduino IDE `1.8.12` changes, that break the compilation of mixed code for precompiled library `Adafruit_nRFCrypto`. Which is needed for LESC pairing. We could merge it later when this is issued is resolved and new IDE version is released (and ci re-run passed)
- https://github.com/arduino/arduino-builder/issues/353
- https://github.com/arduino/arduino-cli/pull/611
**Copied from changedlog**
This version implement comprehensive LESC and Legacy pairing using dynamic & staic Passkey.
- Support static passkey (Legacy only)
- Support LESC on nRF52840 using hardware-accelerated ARM CryptoCell CC310 provided by [Adafruit_nRFCypto](https://github.com/adafruit/Adafruit_nRFCrypto), therefore nRFCrypto library must be installed
- Rework bonding mechanism to use IRK for peer finding. It is advisable to run `clearbonds` example to clean up bond files of previous version
### BLESecurity
A new class BLESecurity (access with Bluefruit.Security) is added to handle security and pairing.
- **setPIN()** to set static passkey, this will force to use Legacy Pairing
- **setIOCaps()** to congiure IO capacities
- **setMITM()** to enable/disable Man in The Middle protection (passkey), it is auto-enabled when using passkey
- **setPairPasskeyCallback()** to register callback for displaying pairing passkey to user
- **setPairCompleteCallback()** to register callback for the result of pairing procedure (succeeded or failed)
- **setSecuredCallback()** to register callback which invoked when connection is secured. This happens after he pairing procedure is complete, or we re-connect with preivously bonded peer device
For other changes, please check out the changelog for detailed.
was merged 2020-09-11, but the 0.21.0 release date was 2020-08-31
natebc
May 13, 2021, 10:05pm
#4
Is there any way i can work with those files?
pert
May 13, 2021, 10:09pm
#5
You can install the development version of the Adafruit nRF52 Boards platform by following these instructions:
https://github.com/adafruit/Adafruit_nRF52_Arduino#optional-core-development-adafruit-nrf52-bsp-via-git
Unfortunately, Arduino Pro IDE does not currently support boards platforms installed in the sketchbook, so you'll need to use Arduino IDE 1.8.14 instead.
natebc
May 13, 2021, 10:13pm
#6
Thank you I appreciate the help
pert
May 14, 2021, 2:59am
#7
You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per
system
Closed
September 11, 2021, 3:00am
#8
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.