This repository contains the Arduino BSP for Seeed nRF52 series:
There are two methods that you can use to install this BSP. We highly recommend the first option unless you wish to participate in active development of this codebase via GitHub.
- Download and install the Arduino IDE (At least v1.6.12)
- Start the Arduino IDE
- Go into Preferences
- Add https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json as an 'Additional Board Manager URL'
- Restart the Arduino IDE
- Open the Boards Manager from the Tools -> Board menu and install 'Seeed nRF52 Boards'
- Once the BSP is installed, select 'Seeed XIAO nRF52840' from the Tools -> Board menu, which will update your system config to use the right compiler and settings for the nRF52.
- Install BSP via Board Manager as above to install compiler & tools.
- Delete the core folder
nrf52
installed by Board Manager in Adruino15, depending on your OS. It could be
- macOS :
~/Library/Arduino15/packages/Seeeduino/hardware/nrf52
- Linux :
~/.arduino15/packages/Seeeduino/hardware/nrf52
- Windows:
%APPDATA%\Local\Arduino15\packages\Seeeduino\hardware\nrf52
cd <SKETCHBOOK>
, where<SKETCHBOOK>
is your Arduino Sketch folder:
- macOS :
~/Documents/Arduino
- Linux :
~/Arduino
- Windows:
~/Documents/Arduino
- Create a folder named
hardware/Seeeduino
, if it does not exist, and change directories to it - Clone this repo & its submodules:
git clone https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino.git
cd Adafruit_nRF52_Arduino
git submodule update --init
- Restart the Arduino IDE
- Once the BSP is installed, select 'Seeed XIAO nRF52840' from the Tools -> Board menu, which will update your system config to use the right compiler and settings for the nRF52.
$ git clone --depth 1 --recurse-submodules https://github.com/Seeed-Studio/Adafruit_nRF52_Arduino Seeed_nRF52_Boards
$ cd Seeed_nRF52_Boards
$ ./extras/pack_release.sh
adafruit-nrfutil (derived from Nordic pc-nrfutil) is needed to upload sketch via serial port.
- For Windows and macOS, pre-built executable binaries are included in the BSP at
tools/adafruit-nrfutil/
. It should work out of the box. - Linux user need to run follow command to install it from PyPi
$ pip3 install adafruit-nrfutil --user
This core is based on Adafruit_nRF52_Arduino by Adafruit, which in turn is based on Arduino-nRF5 by Sandeep Mistry, which in turn is based on the Arduino SAMD Core.
The following libraries are used: