Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 3.83 KB

README.md

File metadata and controls

77 lines (54 loc) · 3.83 KB

Arduino Core for nRFMicro-like Boards

This repository contains the Arduino BSP for nRFMicro-compatible boards:

Pinouts

SuperMini nRF52840 / nice!Nano v2

SuperMini nRF52840 and nice!Nano v2 pinout

nRFMicro

nRFMicro pinout

BSP Installation

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.

Recommended: BSP via the Arduino Board Manager

  1. Download and install the Arduino IDE (At least v1.6.12)
  2. Start the Arduino IDE
  3. Go into Preferences
  4. Add "https://raw.githubusercontent.com/pdcook/nRFMicro-Arduino-Core/main/package_nRFMicro_index.json" as an 'Additional Board Manager URL'
  5. Restart the Arduino IDE
  6. Open the Boards Manager from the Tools -> Board menu and install 'nRFMicro Boards'
  7. Once the BSP is installed, select 'nRFMicro' or 'SuperMini nRF52840' from the Tools -> Board menu, which will update your system config to use the right compiler and settings for the nRF52.

Optional (Core Development): BSP via git

  1. Install BSP via Board Manager as above to install compiler & tools.
  2. Delete the core folder nrf52 installed by Board Manager in Adruino15, depending on your OS. It could be
  • macOS : ~/Library/Arduino15/packages/nRFMicro/hardware/nrf52
  • Linux : ~/.arduino15/packages/nRFMicro/hardware/nrf52
  • Windows: %APPDATA%\Local\Arduino15\packages\nRFMicro\hardware\nrf52
  1. cd <SKETCHBOOK>, where <SKETCHBOOK> is your Arduino Sketch folder:
  • macOS : ~/Documents/Arduino
  • Linux : ~/Arduino
  • Windows: ~/Documents/Arduino
  1. Create a folder named hardware/nRFMicro, if it does not exist, and change directories to it
  2. Clone this repo & its submodules:
git clone https://github.com/pdcook/nRFMicro-Arduino-Core
cd nRFMicro-Arduino-Core
git submodule update --init
  1. Restart the Arduino IDE
  2. Once the BSP is installed, select 'nRFMicro' or 'SuperMini nRF52840' from the Tools -> Board menu, which will update your system config to use the right compiler and settings for the nRF52.

Adafruit's nrfutil tools

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

Credits

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: