From d3296da1d7f480b51120a375d59aeda0064ab47b Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 24 Nov 2016 12:28:52 +0100 Subject: [PATCH 1/5] Added Adafruit sub-folder --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e428dbc..e7be8922 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ For burning bootloader with jlink, you will nrfjprog. Not required if you only u * OS X: ```~/Documents/Arduino``` * Linux: ```~/Arduino``` * Windows: ```~/Documents/Arduino``` - 3. Create a folder named ```hardware```, if it does not exist, and change directories to it + 3. Create a folder named ```hardware/Adafruit```, if it does not exist, and change directories to it 4. Clone this repo: `git clone git@github.com:adafruit/Adafruit_nRF52_Arduino.git` 5. Restart the Arduino IDE From ce9b8f2f7e2b38f5f3f6e629f779bc87a6c5a472 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 24 Nov 2016 12:50:33 +0100 Subject: [PATCH 2/5] Cleanup --- README.md | 50 ++++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index e7be8922..4a67ce89 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,8 @@ # Arduino Core for Nordic Semiconductor nRF5 based boards ## Installing - -### Tools - -#### Jlink - - Download and install jlink from segger - -#### nrfutil - - cd tools/nrfutil-0.5.2 - - sudo pip install nrfutil - -#### nrfjprog - -For burning bootloader with jlink, you will nrfjprog. Not required if you only upload sketch. - -- 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 +### Arduino nRF5x BSP via Board Manager 1. [Download and install the Arduino IDE](https://www.arduino.cc/en/Main/Software) (At least v1.6.12) 2. Start the Arduino IDE @@ -30,7 +11,7 @@ For burning bootloader with jlink, you will nrfjprog. Not required if you only u 5. Open the Boards Manager from the Tools -> Board menu and install "Nordic Semiconductor nRF5 Boards" 6. Select your nRF5 board from the Tools -> Board menu -### From git (for core development) +### Adafruit nRF52 BSP via git (for core development) 1. Follow steps from Board Manager section above 2. ```cd ```, where `````` is your Arduino Sketch folder: @@ -41,7 +22,32 @@ For burning bootloader with jlink, you will nrfjprog. Not required if you only u 4. Clone this repo: `git clone git@github.com:adafruit/Adafruit_nRF52_Arduino.git` 5. Restart the Arduino IDE -## BLE +### Required Third Party Tools + +#### nrfutil + +The Arduino nRF5x BSP includes a python wrapper for Nordic's `nrfutil`, which is used to flash boards. Go into the Arduino BSP folder, and run the following to make this available to the Arduino IDE: + + - cd tools/nrfutil-0.5.2 + - sudo pip install nrfutil + +On **Windows** this folder is normally `%APPDATA%\Arduino15\packages\adafruit\hardware`. + +On **OS X** this folder is normally `~/Library/Arduino15/packages/adafruit/hardware`. + +#### Jlink Driver and Tools (To Flash Bootloader) + +Download and install the [JLink Software and Documentation Pack](https://www.segger.com/downloads/jlink) from Segger, which will also install a set of command line tools. + +#### nrfjprog (To Flash Bootloader) + +For burning bootloader with jlink, you will nrfjprog. Not required if you only upload sketch. + +- 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 + +## BLE Arduino Support 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. From 045e36e64fa805a4f2646aa98b0cd4b3b24c4da8 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 24 Nov 2016 12:53:10 +0100 Subject: [PATCH 3/5] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4a67ce89..3b31838c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ ### Arduino nRF5x BSP via Board Manager +**NOTE:** For now, you need to install this BSP to gain access to the compiler. In the future, only the Adafruit nRF52 BSP will be required. + 1. [Download and install the Arduino IDE](https://www.arduino.cc/en/Main/Software) (At least v1.6.12) 2. Start the Arduino IDE 3. Go into Preferences From a6ea73e299d0d15cb22edbd18d53ac11777cc72e Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 24 Nov 2016 13:01:26 +0100 Subject: [PATCH 4/5] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 3b31838c..f90a4c36 100644 --- a/README.md +++ b/README.md @@ -28,15 +28,11 @@ #### nrfutil -The Arduino nRF5x BSP includes a python wrapper for Nordic's `nrfutil`, which is used to flash boards. Go into the Arduino BSP folder, and run the following to make this available to the Arduino IDE: +The Adafruit nRF52 BSP includes a python wrapper for Nordic's `nrfutil`, which is used to flash boards. Go into the BSP folder (`hardware/Adafruit/Adafruit_nRF52_Arduino`), and run the following to make this available to the Arduino IDE: - cd tools/nrfutil-0.5.2 - sudo pip install nrfutil -On **Windows** this folder is normally `%APPDATA%\Arduino15\packages\adafruit\hardware`. - -On **OS X** this folder is normally `~/Library/Arduino15/packages/adafruit/hardware`. - #### Jlink Driver and Tools (To Flash Bootloader) Download and install the [JLink Software and Documentation Pack](https://www.segger.com/downloads/jlink) from Segger, which will also install a set of command line tools. From efdba981b559d3d75288d0cc565955e5baf1865d Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Thu, 24 Nov 2016 13:07:29 +0100 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f90a4c36..f14f9b8d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ #### nrfutil -The Adafruit nRF52 BSP includes a python wrapper for Nordic's `nrfutil`, which is used to flash boards. Go into the BSP folder (`hardware/Adafruit/Adafruit_nRF52_Arduino`), and run the following to make this available to the Arduino IDE: +The Adafruit nRF52 BSP includes a [python wrapper](https://github.com/NordicSemiconductor/pc-nrfutil) for Nordic's `nrfutil`, which is used to flash boards. Go into the BSP folder (`hardware/Adafruit/Adafruit_nRF52_Arduino`), and run the following to make this available to the Arduino IDE: - cd tools/nrfutil-0.5.2 - sudo pip install nrfutil