Skip to content

Instantly share code, notes, and snippets.

@BryanJBryce BryanJBryce/Readme.md forked from cheburashka/Readme.md
Last active Nov 20, 2019

Embed
What would you like to do?
nRF52 Toolchain Setup in Mac OS X

Equipment

  • 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

Testing

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

Credits

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.