Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

nRF52840 Sense not BLEing
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

nRF52840 Sense not BLEing

by douglaso on Fri Jan 14, 2022 9:06 pm

I just hooked up my Feather nRF52840 Sense board. All seems to be working, except BLE. Just including bluefruit.h and trying Bluefruit.begin() results in this compiler error, among others:

Code: Select all | TOGGLE FULL SIZE
Archiving built core (caching) in: /tmp/arduino_cache_375110/core/core_adafruit_nrf52_feather52840sense_softdevice_s140v6,debug_l0,debug_output_serial_230f8b456d4cdc89920430179f533a59.a
libraries/Adafruit_nRFCrypto/Adafruit_nRFCrypto.cpp.o: In function `Adafruit_nRFCrypto::begin()':
/home/pi/Arduino/libraries/Adafruit_nRFCrypto/src/Adafruit_nRFCrypto.cpp:71: undefined reference to `SaSi_LibInit'
libraries/Adafruit_nRFCrypto/nRFCrypto_Random.cpp.o: In function `nRFCrypto_Random::begin()':


I'm using Arduino 1.8.13 on a Raspberry Pi4. Any ideas?

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by franklin97355 on Fri Jan 14, 2022 10:02 pm

Have you updated the board file and the libraries? Check this out and see if it is any help. Try the examples included, to check the programming, and if it does not work still post your code. Thanks.

franklin97355
 
Posts: 22594
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: nRF52840 Sense not BLEing

by douglaso on Sun Jan 16, 2022 3:10 pm

Yes, I have have been thru the tutorials and tried many revisions and re-installs. The Pi clearly doesn't have something that nRFCrypto requires (something that provides SaSiLib for example) . It's not my code; I'm simply trying to compile this:

Code: Select all | TOGGLE FULL SIZE
#include  <bluefruit.h>

void setup()
{
  Bluefruit.begin();
}

void loop()
{
  // doesn't matter
}

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by douglaso on Sun Jan 16, 2022 4:45 pm

Confirmed that things are working nicely on a Windows box. How about a little love for us Raspberry Pi Guys?

I'll update this thread if I stumble upon something.

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by adafruit_support_mike on Wed Jan 19, 2022 9:19 pm

Talk to the folks over at the Arduino forums:

http://forum.arduino.cc/

They're the ones who build and maintain the IDE.

It's an Open Source project, so you're welcome to get involved and contribute to any parts you think need improvement.

adafruit_support_mike
 
Posts: 64516
Joined: Thu Feb 11, 2010 2:51 pm

Re: nRF52840 Sense not BLEing

by douglaso on Wed Jan 19, 2022 10:19 pm

I understand. There's no problem with the IDE. The problem begins in Adafruit software:
Code: Select all | TOGGLE FULL SIZE
/home/pi/Arduino/libraries/Adafruit_nRFCrypto/src/Adafruit_nRFCrypto.cpp:71: undefined reference to `SaSi_LibInit'
At least, I assumed you would try to maintain code with your company name on it.

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by adafruit2 on Thu Jan 20, 2022 10:03 pm

the libraries are def supported - but we haven't ever used arduino on raspi, so if you're using the exact same setup on both windows and raspi and it doesnt work on raspi ... we wouldn't know why htats happening.
make sure you've got the latest IDE, libraries, and all that. the library code we've got should work the same on both! :)

adafruit2
Site Admin
 
Posts: 20850
Joined: Fri Mar 11, 2005 7:36 pm

Re: nRF52840 Sense not BLEing

by douglaso on Thu Jan 20, 2022 10:25 pm

Thank you. I was hoping it might just be some cryptography piece that is not distributed with Linux (or Debian, or whatever) for international reasons. May still be. My C is lacking, but if I find anything out, I'll update this post. In general, the Pi makes a very fine AVR etc development workstation.

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by adafruit2 on Thu Jan 20, 2022 11:28 pm

the maintainer is currently on break but will be back in a few days and will check it out when they return :)

adafruit2
Site Admin
 
Posts: 20850
Joined: Fri Mar 11, 2005 7:36 pm

Re: nRF52840 Sense not BLEing

by hathach on Wed Jan 26, 2022 2:49 pm

I just setup my Pi4 and run a compile test, it seems to compile just fine. I use arduino-cli though, since I mostly use Pi4 as headless.

Code: Select all | TOGGLE FULL SIZE
pi@pi4:~$ arduino-cli version                                                                       
arduino-cli  Version: 0.20.2 Commit: 13783819 Date: 2021-12-09T13:32:05Z

$arduino-cli compile -b adafruit:nrf52:feather52840sense bleuart
Library Adafruit_nRFCrypto has been declared precompiled:
Using precompiled library in /home/pi/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/libraries/Adafruit_nRFCrypto/src/cortex-m4/fpv4-sp-d16-hard
Sketch uses 122056 bytes (14%) of program storage space. Maximum is 815104 bytes.
Global variables use 14308 bytes (6%) of dynamic memory, leaving 223260 bytes for local variables. Maximum is 237568 bytes.


1. What is your Pi OS , I am testing with 32-bit version.
2. Could you provide the uname -a output on your PI4,

Code: Select all | TOGGLE FULL SIZE
pi@pi4:~$ uname -a                                                                                 
Linux pi4 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux                       
 

hathach
 
Posts: 1213
Joined: Tue Apr 23, 2013 1:02 am

Re: nRF52840 Sense not BLEing

by hathach on Wed Jan 26, 2022 2:51 pm

Code: Select all | TOGGLE FULL SIZE
/home/pi/Arduino/libraries/Adafruit_nRFCrypto/src/Adafruit_nRFCrypto.cpp:71: undefined reference to `SaSi_LibInit'
libraries/Adafruit_nRFCrypto/nRFCrypto_Random.cpp.o: In function `nRFCrypto_Random::begin()':


it looks like the arduino ide has issue with Adafruit_nRFCrypto library linking with lib file and source (mixed). Would you mind upgrading your Arduino IDE and try again, probably with at least 1.8.15. If the issue still exists, please attached the full compile log here for analysis.

hathach
 
Posts: 1213
Joined: Tue Apr 23, 2013 1:02 am

Re: nRF52840 Sense not BLEing

by douglaso on Wed Jan 26, 2022 9:54 pm

Thank you very much hathach! Reinstalling the IDE with 1.8.19 (from .13) seems to have none the trick. No problems now. So I guess it was the IDE after all. I shoulda knowed. You guys at Adafruit never let one down.

douglaso
 
Posts: 33
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

by hathach on Wed Jan 26, 2022 11:30 pm

I am glad that works for you. Happy hacking

hathach
 
Posts: 1213
Joined: Tue Apr 23, 2013 1:02 am

Please be positive and constructive with your questions and comments.