How can I get Xiao nRF52840 Sense board info by code?

Ok well thank you, seems like a basic question. I looked further and turns out the Arduino Nano 33 BLE uses the Nordic nRF52840 chip. they are called Factory information configuration registers. There are a couple you can use to identify the chip. e.g. Device Identifier, Device Address.
this code from Klaus_K works perfectly.

#include <ArduinoBLE.h>

void setup()
{
  Serial.begin( 9600 );
  while ( !Serial );
}

void loop()
{
  Serial.print( "Device ID 0: " );
  Serial.println( NRF_FICR->DEVICEID[0], HEX );
  Serial.print( "Device ID 1: " );
  Serial.println( NRF_FICR->DEVICEID[1], HEX );

  Serial.print( "Device Address 0: " );
  Serial.println( NRF_FICR->DEVICEADDR[0], HEX );
  Serial.print( "Device Address 1: " );
  Serial.println( NRF_FICR->DEVICEADDR[1], HEX );

  delay ( 5000 );
}
I got this out put and it matches the Dev board's "get board info"
SWEET!

Device ID 0: A2041DAA
Device ID 1: 97B5492C
Device Address 0: B1F8B34E
Device Address 1: F529BC40

now on to how to embed it in the BLE advertised name. :slight_smile:
thanks for the Push.
GL :wink:

1 Like