Skip to content

Instantly share code, notes, and snippets.

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

Equipment

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

Toolchain Setup

  1. Install GCC
brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
  1. Download and unzip inside ~/Development/nRF52/
  1. 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
  1. 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
  1. Install J-Link Software and Documentation pack for MacOSX 6.44e

Testing

cd ~/Development/nRF52/SDK_15.3.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

@Curnelius

This comment has been minimized.

Copy link

Curnelius commented May 3, 2017

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 :(

@mafaneh

This comment has been minimized.

Copy link

mafaneh commented Jun 8, 2017

I agree that setting up Eclipse is a pain! I wrote a blog post a few weeks ago to address this. It may be a lengthy tutorial but it goes through setting up the toolchain, IDE (NetBeans in this case), compiling, flashing and being able to debug and step through code on the target.

You may find it helpful: http://www.novelbits.io/nrf52-mac-development-tutorial/

@afmenhem

This comment has been minimized.

Copy link

afmenhem commented Oct 10, 2019

Hi, I'm trying to use LTE Link Monitor to send some AT Commands to my test on Thingy:91 and Thingy:52. I've connect the device using a good USB cable, but I'm getting the following messages in the log window:

15:03:08.445 Application data folder: /Users/angelo/Library/Application Support/nrfconnect/pc-nrfconnect-linkmonitor
15:03:08.619 Error while probing devices: Error occured when get serial numbers. Errorcode: CouldNotOpenDLL (0x7) Lowlevel error: JLINKARM_DLL_NOT_FOUND (ffffff9c)

In the menu there is a "no devices available" .

What am I missing?

Regards

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.