Seeed nrf52 non sense bluetooth broken

I’m trying to follow this Bluetooth Usage on Seeed Studio XIAO nRF52840 (Sense) - Seeed Wiki but the example doesn’t compile. Here’s my 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\Cameron\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:33:2: error: #error "Unsupported board selected!"
   33 | #error "Unsupported board selected!"
      |  ^~~~~
C:\Users\Cameron\Documents\Arduino\libraries\ArduinoBLE\src\utility\HCIUartTransport.cpp:99:40: error: 'SerialHCI' was not declared in this scope; did you mean 'Serial'?
   99 | HCIUartTransportClass HCIUartTransport(SerialHCI, 912600);
      |                                        ^~~~~~~~~
      |                                        Serial
exit status 1
Error compiling for board Seeed XIAO nRF52840 Sense.

Anybody have any ideas?

I got it working, the documentation here: Getting Started with Seeed Studio XIAO nRF52840 (Sense) - Seeed Wiki had me install the wrong board library. It should be noted that the “mbed enabled” search result needs to be installed, not the first result

What about PlatformIO ?

[env:seeed_xiao_nrf52840_sense]
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = seeed-xiao-afruitnrf52-nrf52840-sense
framework = arduino
monitor_speed = 115200
lib_archive = no
lib_deps = 
	arduino-libraries/ArduinoBLE@^1.4.0

Got the error :slight_smile:
HCIUartTransport.cpp Unsupported board selected!

HI there,

So that’s not the correct BSP…is what it means.
“board = seeed-xiao-afruitnrf52-nrf52840-sense”
is incorrect.
search PLio Seeed Studio XIAO.

HTH
GL :slight_smile: PJ :v:

For Bluetooth on the Seeed XIAO nRF52840 Sense do not use ArduinoBLE.

Instead, use:

Adafruit_nRF52_Arduino core

This core includes its own BLE library based on the Nordic Soft Device and is fully compatible with the nRF52840.

Hi there,

ArduinoBLE works fine… You may need to read up on the nuance of using it… Mbed 2.9.2 works fine with it.
HTH
GL :slight_smile: PJ :v: