- download toolchain https://launchpad.net/gcc-arm-embedded/+download
-
download nRF51 SDK https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF5-SDK
-
edit Makefile config :
~/nrf51-sdk/components/toolchain/gcc/Makefile.posix
:
GNU_INSTALL_ROOT := <path_to_toolchain>
GNU_VERSION := 5.2.1
GNU_PREFIX := arm-none-eabi
Replace your toolchain path + your GNU version
get the nrf uploader : https://www.nordicsemi.com/eng/nordic/Products/nRF51-DK/nRF5x-Tools-Linux/51392
- install Segger in
/opt/SEGGER/JLink
from https://www.segger.com/jlink-software.html
cd ~/nrf51-sdk/examples/peripheral/blinky/pca10028/blank/armgcc
make
//erase firmware
nrfjprog --family nRF51 -e
//upload firmware
nrfjprog --family nRF51 --program _build/nrf51422_xxac.hex
//start firmware
nrfjprog --family nRF51 -r
add JLink
folder to your path :
export PATH=$PATH:/opt/SEGGER/JLink
start debug :
JLinkExe -device nRF51422_xxAC -speed 4000 -if SWD
> connect
In another terminal :
JLinkRTTClient
You should now see Hello World from SEGGER!
if your blink example is running