Skip to content

Instantly share code, notes, and snippets.

@adricasti
Last active June 24, 2020 18:59
Show Gist options
  • Save adricasti/c74840823cde609a5ec379c9440fc0fe to your computer and use it in GitHub Desktop.
Save adricasti/c74840823cde609a5ec379c9440fc0fe to your computer and use it in GitHub Desktop.
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

@afmenhem
Copy link

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