- MacOS Sierra 10.12.5
- MacBook Pro (Retina, 13-inch, Late 2012)
- nRF52-DK (PCA10040)
- Install GCC
brew cask install gcc-arm-embedded
- Download and unzip inside
~/Development/nRF52/
- nRF5-SDK latest in
SDK_X.X.X
folder - S132 Soft Device latest in
SD132_X.X.X
folder - nRF5 Command Line Tools
- Install command line tools
brew cask install nrf5x-command-line-tools
- Change the nRF SDK to use my version of arm-gcc changing the file
~/Development/nRF52/SDK_X.X.X/components/toolchain/gcc/Makefile.posix
to reflect the location of my homebrew installed version
GNU_INSTALL_ROOT := /usr/local/Caskroom/gcc-arm-embedded/6-2017-q2-update/gcc-arm-none-eabi-6-2017-q2-update/bin
GNU_VERSION := 5.4.1
GNU_PREFIX := arm-none-eabi
cd ~/Development/nRF52/SDK_14.0.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
And in 2023, this is
brew install nordic-nrf-command-line-tools