unable to compile code with arduinoBLE.h library using artemis ATP board

I have a red board artemis ATP that comes with a blutooth low power module.

I tried programming it using simple arduino code that blinks the built in LED and worked fine but when I included the arduinoBLE.h I got error compiling.

The arduinoBLE.h is installed.

I have read that this library is used with certain boards which are Arduino MKR WiFi 1010, Arduino UNO WiFi Rev.2, Arduino Nano 33 IoT, Arduino Nano 33 BLE and Nicla Sense ME.

Any help please!

Thanks,

What kind of error do you get ?

exit status 1

Error compiling for board SparkFun RedBoard Artemis ATP.

Not much of help.

In the Arduino IDE select : file, preferences, ’ show verbose during outputting’ . Click on compilation and recompile. Now you should see more information and the exact error message.

This is the full error message

In file included from C:\Users\Mousa\OneDrive - just.edu.jo\Documents\Arduino\libraries\ArduinoBLE-1.3.2\src/ArduinoBLE.h:26,

from C:\Users\Mousa\OneDrive - just.edu.jo\Desktop\sketch_oct12a\sketch_oct12a.ino:1:

C:\Users\Mousa\OneDrive - just.edu.jo\Documents\Arduino\libraries\ArduinoBLE-1.3.2\src/BLETypedCharacteristics.h:60:61: error: ‘word’ was not declared in this scope

class BLEWordCharacteristic : public BLETypedCharacteristic {

^~~~

C:\Users\Mousa\OneDrive - just.edu.jo\Documents\Arduino\libraries\ArduinoBLE-1.3.2\src/BLETypedCharacteristics.h:60:65: error: template argument 1 is invalid

class BLEWordCharacteristic : public BLETypedCharacteristic {

Thanks,

I have seen this before on V 1.2.3 of the library. Are you using Sparkfun ATP library version 2.2.3 or Version 1.2.3 ?

What I did so far is the following:

Installed the spark fun package appollo 3

Installed arduinoble library 1.3.2

I do not know what you mean by sparkfun ATP library.

Thanks,

I assume you have installed the board library for Sparkfun Apollo3 boards and you have selected the ATP board ( in the IDE : tools, board).

You can check the version of the board : tools, board, board manager, in search type Apollo3. Then you will see the installed version. This needs to be version 2.2.1

its 1.2.1 ,

There is no 2.2.1 version in the drop down arrow list.

How can I download this version?

Make sure to follow the instruction from https://learn.sparkfun.com/tutorials/ar … troduction

Make sure to update the JSON file link in preferences.

Last question

what IDE version do you use??

I am using 1.8.12 but the latest version of apollo in the dropdown box is 1.2.1!!!

Thanks.

it is not a matter of the IDE, although I use 1.8.16 version.

The board library versions are stored in a json file which needs to be included in preferences. Make sure to include ```
https://raw.githubusercontent.com/sparkfun/Arduino_Apollo3/master/package_sparkfun_apollo3_index.json


if you have an old or different Apollo3 link in your preferences, remove that.

Thank you Paul, You saved my day.