nRF52840 Sense not BLEing

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

nRF52840 Sense not BLEing

Post by douglaso »

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

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_BANNED/Adafruit_BANNED.cpp.o: In function `Adafruit_BANNED::begin()':
/home/pi/Arduino/libraries/Adafruit_BANNED/src/Adafruit_BANNED.cpp:71: undefined reference to `SaSi_LibInit'
libraries/Adafruit_BANNED/BANNED_Random.cpp.o: In function `BANNED_Random::begin()':
I'm using Arduino 1.8.13 on a Raspberry Pi4. Any ideas?

User avatar
Franklin97355
 
Posts: 23903
Joined: Mon Apr 21, 2008 2:33 pm

Re: nRF52840 Sense not BLEing

Post by Franklin97355 »

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.

User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

Post by douglaso »

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

Code: Select all

#include  <bluefruit.h>

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

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

User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

Post by douglaso »

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.

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: nRF52840 Sense not BLEing

Post by adafruit_support_mike »

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.

User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

Post by douglaso »

I understand. There's no problem with the IDE. The problem begins in Adafruit software:

Code: Select all

/home/pi/Arduino/libraries/Adafruit_BANNED/src/Adafruit_BANNED.cpp:71: undefined reference to `SaSi_LibInit'
At least, I assumed you would try to maintain code with your company name on it.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: nRF52840 Sense not BLEing

Post by adafruit2 »

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! :)

User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

Post by douglaso »

Thank you. I was hoping it might just be some BANNED 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.

User avatar
adafruit2
 
Posts: 22111
Joined: Fri Mar 11, 2005 7:36 pm

Re: nRF52840 Sense not BLEing

Post by adafruit2 »

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

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: nRF52840 Sense not BLEing

Post by hathach »

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

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_BANNED has been declared precompiled:
Using precompiled library in /home/pi/.arduino15/packages/adafruit/hardware/nrf52/1.3.0/libraries/Adafruit_BANNED/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

pi@pi4:~$ uname -a                                                                                  
Linux pi4 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux                       
 

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: nRF52840 Sense not BLEing

Post by hathach »

Code: Select all

/home/pi/Arduino/libraries/Adafruit_BANNED/src/Adafruit_BANNED.cpp:71: undefined reference to `SaSi_LibInit'
libraries/Adafruit_BANNED/BANNED_Random.cpp.o: In function `BANNED_Random::begin()':
it looks like the arduino ide has issue with Adafruit_BANNED 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.

User avatar
douglaso
 
Posts: 36
Joined: Tue Mar 12, 2013 12:36 am

Re: nRF52840 Sense not BLEing

Post by douglaso »

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.

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: nRF52840 Sense not BLEing

Post by hathach »

I am glad that works for you. Happy hacking

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”