ae553fa4fc5020a5d61eb8127320c04303aed70a
Arduino Core for Nordic Semiconductor nRF5 based boards
Program your Nordic Semiconductor nRF51 or nRF52 board using the Arduino IDE.
Does not require a custom bootloader on the device.
Installing
Tools
Jlink
Download and install jlink from segger
nrfutil
- cd tools/nrfutil-0.5.2
- sudo pip install nrfutil
nrfjprog
- download nRF5x-Command-Line-Tools-OSX/Linux/Win32 https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52832#Downloads
- Extract downloaded file and add extracted path to Environment Path
- Check to make sure you could run nrfjprog from your terminal/command prompt
Board Manager
- Download and install the Arduino IDE (At least v1.6.12)
- Start the Arduino IDE
- Go into Preferences
- Add
https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.jsonas an "Additional Board Manager URL" - Open the Boards Manager from the Tools -> Board menu and install "Nordic Semiconductor nRF5 Boards"
- Select your nRF5 board from the Tools -> Board menu
OS Specific Setup
OS X
No additional setup required.
Linux
No additional setup required.
Windows
Driver Setup for Segger J-Link
- Download Zadig
- Plugin Segger J-Link or DK board
- Start
Zadig - Select
Options -> List All Devices - Select
J-Link (Interface 2)from the device dropdown - Click
Replace Driver
Flashing a SoftDevice
cd <SKETCHBOOK>, where<SKETCHBOOK>is your Arduino Sketch folder:
- OS X:
~/Documents/Arduino - Linux:
~/Arduino - Windows:
~/Documents/Arduino
- Create the following directories:
tools/nRF5FlashSoftDevice/tool/ - Download nRF5FlashSoftDevice.jar to
<SKETCHBOOK>/tools/nRF5FlashSoftDevice/tool/ - Restart the Arduino IDE
- Select your nRF board from the Tools -> Board menu
- Select a SoftDevice from the Tools -> "SoftDevice: " menu
- Select a Programmer (J-Link, ST-Link V2, or CMSIS-DAP) from the Tools -> "Programmer: " menu
- Select Tools -> nRF5 Flash SoftDevice
- Read license agreement
- Click "Accept" to accept license and continue, or "Decline" to decline and abort
- If accepted, SoftDevice binary will be flashed to the board
From git (for core development)
- Follow steps from Board Manager section above
cd <SKETCHBOOK>, where<SKETCHBOOK>is your Arduino Sketch folder:
- OS X:
~/Documents/Arduino - Linux:
~/Arduino - Windows:
~/Documents/Arduino
- Create a folder named
hardware, if it does not exist, and change directories to it - Clone this repo:
git clone https://github.com/sandeepmistry/arduino-nRF5.git sandeepmistry/nRF5 - Restart the Arduino IDE
BLE
This Arduino Core does not contain any Arduino style API's for BLE functionality. All the relevant Nordic SoftDevice (S110, S130, S132) header files are included build path when a SoftDevice is selected via the Tools menu.
Recommend BLE Libraries
- BLEPeripheral
- v0.3.0 and greater, available via the Arduino IDE's library manager.
- Supports peripheral mode only.
Credits
This core is based on the Arduino SAMD Core and licensed under the same GPL License
The following tools are used:
- GCC ARM Embedded as the compiler
- A forked version of OpenOCD to flash sketches
Description
Adafruit nRF52 core as MeshCore builds it (meshcore-dev fork) + meshcore-tth fixes, branch tth
92 MiB
0 Stars
1 Watchers
0 Forks
Languages
C
88.7%
C++
10.6%
Assembly
0.4%
Python
0.2%