Hello, can someone please help. This is my first time writing a Arduino program and I am having issues uploading it to my Arduino. I am getting the following error:
WARNING: library ArduinoBLE claims to run on (samd, megaavr, mbed, apollo3) architecture(s) and may be incompatible with your current board which runs on (avr) architecture(s).
D:\Users\Johnson's\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:33:2: error: #error "Unsupported board selected!"
#error "Unsupported board selected!"
^
D:\Users\Johnson's\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:99:40: error: 'SerialHCI' was not declared in this scope
The Amazon instructions say to program the board as a Arduino Nano, which is what I’ve been trying. It also says to install the CC2540 driver, but I can’t find that.
Hi @gjohnson7771. The ArduinoBLE library is only for use with the nRF52840-based Arduino boards (Nano 33 BLE) and the Arduino boards that use a u-blox NINA-W102 module (Arduino Nano 33 IoT, MKR WiFi 1010). The library can't be used with your 3rd party board.. You will either need to control the CC2540 directly using AT commands sent over Serial, or else find an Arduino library that supports the C2540.
You can search for a library in the Arduino IDE's Library Manager (Sketch > Include Library > Manage Libraries....
Ok, well it looks like removing the ArduinoBLE Libary allowed me to upload the program to the board. Now, I have to figure out what I am missing to connect via Bluetooth.