Program Nordic Semiconductor nR5 based boards with the Arduino IDE.
- create new board files for the bootloader
- cut some fat from the bootloader
- ensure BLE update works with the bootloader (may currently be broken due to being forced to reset the softdevice)
- create variants for specific boards, not just the modules
add SOFT_RESET_PIN definition to all variantsconfigure SOFT_RESET_PIN as a pulldown input and attach a rising interrupt to it for resetting the board (done via initVariant();)
- 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
- Install Git: https://git-scm.com/download
- Open the Git-Gui (either type git-gui in the command line or find it in your installed programs)
- Select "Help" -> "Show SSH Key" and generate a public key, send the key to kak0032@auburn.edu to be added to the repository
- Once your SSH key has been addede, Select "Clone Exisiting Repository"
- Source Location is:
git@gitlab.com:kylekubik/arduino-nRF5.git
- Target directory is:
<SKETCHBOOK>/hardware/deft/nRF5/
, where<SKETCHBOOK>
is your Arduino Sketch folder: - OS X:
~/Documents/Arduino
- Linux:
~/Arduino
- Windows:
~/Documents/Arduino
- click Clone
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
This core is based on the Arduino-nRF5 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