Arduino Core for Nordic Semiconductor nRF5 based boards
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.
Support us with a monthly donation and help us continue our activities. [Become a backer]
Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]
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.PCA10040_Schematic_And_PCB.pdf -> GPIO pin mapping from the PCA10040_Schematic.https://sandeepmistry.github.io/arduino-nRF5/package_nRF5_boards_index.json as an "Additional Board Manager URL"NOTE: During installation it takes the Arduino IDE a few minutes to extract the tools after they have been downloaded, please be patient.
No additional setup required.
For 64-bit Linux users, libc6:i386, libstdc++6:i386, libncurses5:i386 and libudev1:i386 need to be installed :
sudo dpkg --add-architecture i386sudo apt-get updatesudo apt-get -y install libc6:i386 libstdc++6:i386 libncurses5:i386 libudev1:i386Download mbed Windows Serial driver
ZadigOptions -> List All DevicesInterface 2 from the device dropdownReplace DriverNOTE: To roll back to the original driver go to: Device Manager -> Right click on device -> Check box for "Delete the driver software for this device" and click Uninstall
NOTE: If using Windows 10 or Linux then two UART COM ports will be visible without requiring additional drivers
SoftDevices contain the BLE stack and housekeeping, and must be downloaded once before a sketch using BLE can be loaded. The SD consumes ~5k of Ram + some extra based on actual BLE configuration.
cd , where `````` is your Arduino Sketch folder:~/Documents/Arduino~/Arduino~/Documents/Arduinotools/nRF5FlashSoftDevice/tool//tools/nRF5FlashSoftDevice/tool/cd , where `````` is your Arduino Sketch folder:~/Documents/Arduino~/Arduino~/Documents/Arduinohardware, if it does not exist, and change directories to itgit clone https://github.com/sandeepmistry/arduino-nRF5.git sandeepmistry-github/nRF5This 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.
If the selected board has an external 32 kHz crystal connected, it will be used as the source for the low frequency clock. Otherwise the internal 32 kHz RC oscillator will be used. The low frequency clock is used by the delay(ms) and millis() Arduino API's.
The Generic nRF51 and nRF52 board options have an additional menu item under Tools -> Low Frequency Clock that allows you to select the low frequency clock source. However, Nordic does not recommend the Synthesized clock, which also has a significant power impact.
This core is based on the Arduino SAMD Core and licensed under the same LGPL License
The following tools are used:
No open issues yet, or sync has not completed.