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:
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?
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.
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:
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! :)
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.
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,
/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.
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.