Skip to content

Instantly share code, notes, and snippets.

Forked from adricasti/
Last active December 15, 2020 07:09
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
nRF52 Toolchain Setup in Mac OS X


  • MacOS Sierra 10.12.5
  • MacBook Pro (Retina, 13-inch, Late 2012)
  • nRF52-DK (PCA10040)

Toolchain Setup

  1. Install GCC
brew cask install gcc-arm-embedded
  1. Download and unzip inside ~/Development/nRF52/
  1. Install command line tools
brew cask install nrf5x-command-line-tools
  1. 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
  1. Install J-Link Software and Documentation pack for MacOSX 6.14h


cd ~/Development/nRF52/SDK_14.0.0/examples/peripheral/blinky/pca10040/blank/armgcc
make flash


I just made a concise version of Aaron Eiche's Programming an nRF52 on a Mac

Copy link

There is no such recipe nrf5x-command-line-tools

$ brew search nrf
homebrew/cask-drivers/nordic-nrf-command-line-tools                 homebrew/cask-drivers/nordic-nrf-connect

So in 2020 it is named type:

brew cask install homebrew/cask-drivers/nordic-nrf-command-line-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment