This folder contains the embedded code to program the nRF51 on the "SensiCoin" board.
The processor used in this project is not Arduino compatible by default but the following steps explain how to do it anyway.
- Download the Arduino IDE:
https://www.arduino.cc/en/Main/Software
- Install the nRF51 support - read carefully these instructions:
https://github.com/sandeepmistry/arduino-nRF5#installing
In the "Tools" menu select:
- "Board->Generic nRF51"
- "Softdevice->S110"
- "Pinout->Custom"
This board doesn't come with a programmer for now but several cheap solutions exist:
- Adafruit sells J-Link and ST-Link probes:
https://www.adafruit.com/product/3571
https://www.adafruit.com/product/2548
- For those with limited budget, these alternatives work too:
- But if you already have a Teensy or a 3.3V Arduino compatible board with ATmega32U4 (such as this one), you can build your own programmer thanks to this repository:
https://github.com/myelin/arduino-cmsis-dap
The above Install section should be enough in most cases but you might need to install udev rule on linux:
https://raw.githubusercontent.com/arduino/OpenOCD/master/contrib/60-openocd.rules
Finally, in the "Tools" menu select the right SWD probe:
- "Programmer->J-Link"
- "Programmer->ST-Link"