Building the EE-02 firmware on macOS
The simplest way to install all of the required software is to install Homebrew.
Install the gcc toolchain by typing this in a terminal:
$ brew tap osx-cross/arm $ brew install arm-gcc-bin
git either via the macOS XCode environment or via Homebrew. The Homebrew version can be installed by this command in a terminal:
$ brew install git
Download the nRF52 11.x SDK from http://www.nordicsemi.com/eng/nordic/download_resource/54291/47/66397134
and install it into a suitable location (The default for the Makefile is
~/Source/nrf52sdk but any location will do.
Pull the latest version of the EE-02 firmware
Open a command prompt and clone the firmware. We’re putting it into
cd ~\Source git clone https://github.com/telenordigital/ee0x-firmware.git cd ee0x-firmware
Update the Makefile with the correct paths
The default paths in the Makefile must be set up for your environment. Open the file in your favorite editor and look for the lines with
GNU_INSTALL_ROOT- This is the location for the gcc toolchain, omit the
bindirectory from the path. The default install location is
FLASH_DRIVE- this is the name of the flash drive the Segger programmer will appear as. Typically this will be
NRF52_SDK_ROOT- the location where you unzipped the nRF SDK files.
GNU_INSTALL_ROOT := /usr/local FLASH_DRIVE := /Volumes/JLINK NRF52_SDK_ROOT := ~/Source/nrf52sdk
Build the firmware
You are now ready to build the firmware. Open a command prompt, go to the directory
with the firmware and type
You should have a file named