- MacOS Mojave 10.14.4
- MacBook Pro (Retina, 13-inch, Late 2012)
- nRF52-DK (PCA10040)
- Install GCC
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
- Download and unzip inside
~/Development/nRF52/
- nRF5-SDK 15.3.0 in
SDK_15.3.0
folder - nRF5 Command Line Tools 9.8.1 in
CLT_9.8.1
folder
- Symlink command line tools
ln -s ~/Development/nRF52/CLT_9.8.1/nrfjprog/nrfjprog /usr/local/bin/nrfjprog
ln -s ~/Development/nRF52/CLT_9.8.1/mergehex/mergehex /usr/local/bin/mergehex
- Change the nRF SDK to use my version of arm-gcc changing the file
~/Development/nRF52/SDK_15.3.0/components/toolchain/gcc/Makefile.posix
to reflect the location of my homebrew installed version
GNU_INSTALL_ROOT := /usr/local/Cellar/gcc-arm-none-eabi/20180627/bin
GNU_VERSION := 7.3.1
GNU_PREFIX := arm-none-eabi
cd ~/Development/nRF52/SDK_15.3.0/examples/peripheral/blinky/pca10040/blank/armgcc
make
make flash
I just made a concise version of Aaron Eiche's Programming an nRF52 on a Mac
I am not sure why people still try to use this way, its useless. You can flash existing make files? cool. then what ? you need an IDE, you need to write code. Setting Eclipse on a mac is hell. a real hell . Nordic guides are sucks, really sucks. Lost :(