Program your Nordic Semiconductor nRF51 or nRF52 board using the Arduino IDE.
Does not require a custom bootloader on the device.
- Plain nRF52 MCU
- Nordic Semiconductor nRF52 DK
- For boards prior to
2016.9
(see sticker), the lastest JLink bootloader is required to upload sketches. To upgrade, press the boot/reset button while powering on the board and copy over the latest bootloader.
- For boards prior to
- Shenzhen Taida Century Technology nRF52 low cost development board
- Plain nRF51 MCU
- BBC micro:bit
- Bluz DK
- Nordic Semiconductor nRF51822 Development Kit + nRF51422 Development Kit
- PCA10000
- PCA10001, PCA10002, PCA10003, PCA10004 via nRF6310(nRFgo)
- OSHChip
- RedBearLab BLE Nano
- RedBearLab nRF51822
- Download and install the Arduino IDE
- Start the Arduino IDE
- Go into Preferences
- Add
https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json
as 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
No additional setup required.
No additional setup required.
- 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
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
- 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
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.
- BLEPeripheral
- v0.3.0 and greater, available via the Arduino IDE's library manager.
- Supports peripheral mode only.
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