XIAO BLE wont compile ArduinoBLE- Arduino IDE

Ive been trying to set up a sensor with BLE, and from numerous youtube vids and instructionals, it is apparent this is exceptionally basic stuff. However, when i go to compile I get this error.

WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta, mbed_nicla architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
C:\Users\erich\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:33:2: error: #error “Unsupported board selected!”
33 | #error “Unsupported board selected!”
| ^~~~~
C:\Users\erich\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:99:40: error: ‘SerialHCI’ was not declared in this scope; did you mean ‘Serial1’?
99 | HCIUartTransportClass HCIUartTransport(SerialHCI, 912600);
| ^~~~~~~~~
| Serial1
exit status 1
Error compiling for board Seeed XIAO nRF52840.

Editing the file to just let me run it (removing the compatibility check) results in a semi-bricked board. Following Getting Started with Seeed XIAO BLE nRF52840 (Sense) | World Smallest Nordic BLE Module - YouTube primarily, and the Seeed website for background, using ArduinoBLE should be flawless.

Whats my issue? How do i fix it?

Running Windows 10, Arduino IDE 1.8.19 (Windows Store), Latest Arduino Lib (deleted and reinstalled), 1.0.0 board drivers (need deepsleep eventually, and the latest drivers dont fix this…)

Im brand new to this so i dont have too much other clogging/settings/etc.

The code architecture of Arduino BLE is not applicable to XIAO BLE, you should not use the code of Arduino BLE, let alone try to brush the firmware of Arduino BLE, otherwise it is likely to cause XIAO BLE unavailable.

Interesting. I’ve seen YouTube tutorials with the arduino ble, and I got it to work fine with 2.6.1 board drivers.

I cannot get anything with the <ArduinoBLE.h> to compile either and I have the same error as you. The XIAO BLE getting started page shows using the ArduinoBLE library in their example here:

WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta, mbed_nicla architecture(s) and may be incompatible with your current board which runs on avr architecture(s).

Apparently after installing the seeed NRF boards, and then closing the Arduino IDE, it completely removed the boards i installed https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json

Not sure why this is happening. After the board disappeared, the Arduino IDE chose some random board that obviously wasn’t compatible. Try checking this or re-installing the seeed NRF52 boards.

I am following the bluetooth getting started doc and hitting the same problem. Total newbie here, and not sure how to “brush the firmware of Arduino BLE”. Is there any doc about this?

WARNING: library ArduinoBLE claims to run on samd, megaavr, mbed, apollo3, mbed_nano, mbed_portenta, mbed_nicla architecture(s) and may be incompatible with your current board which runs on nrf52 architecture(s).
C:\Users\r12f\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:33:2: error: #error "Unsupported board selected!"
   33 | #error "Unsupported board selected!"

Did you clear this issue?
I have same problem and cleared.
The reason is board driver versions.
I also did same procedure and installed version 1.0.0.
But another one said 2.6.1.
So I try “Seeed nrf52 mbed enabled boards”.
After that, the board list shows Seeed XIAO BLE nrf52 and compile was done with few minor error!

Hi, there are indeed two Seeed nRF52 cores provided. Here are the difference:
The “Seeed nRF52 mbed-enabled Boards ” supports embedded ML (or edge AI) applications, where you can use them to build TinyML projects, but you can’t use Bluetooth(BLE) function.
The “Seeed nRF52 Boards ” supports BLE(Bluetooth) function, where you can apply ultra low power consumption, but you may not use it to do embedded ML projects.