Zum Inhalt

How to build BlueID nRF52840 Ready2go from Scratch

How to build BlueID nRF52840 Ready2go from Scratch

Build project with Linux OS

The easiest way to build the BlueID nRF Ready2go software, is a build environment on a Linux operating system (e.g. Linux Mint).

You can also set up a virtual maschine (e.g. Oracle VM VirtualBox) with a Linux operating system.

Download SDK, Compiler and Tools

Please download following Tools:

unzip if necessary

move the files to folder /opt in your filesystem

sudo cp -r nRF5_SDK_15.3.0_59ac345 /opt/nRF5_SDK_15.3.0_59ac345

sudo cp -r s140nrf52611 /opt/s140_nrf52_6.1.1

sudo cp -r gcc-arm-none-eabi-8-2018-q4-major/arm-gcc-none-eabi /opt/gcc-arm-none-eabi

sudo cp -r nRF-Command-Line-Tools_9_8_1_Linux-x86_64 /opt/nRF5x-Command-Line-Tools
Ggrant permissions to the new folders:
sudo chmod 777 -R /opt/s140_nrf52_6.1.1

sudo chmod 777 -R /opt/nRF5_SDK_15.3.0_59ac345

sudo chmod 777 -R /opt/nRF5x-Command-Line-Tools
Install tools
sudo apt-get install scons

sudo apt-get install python-setuptools

sudo apt-get install python-pip

sudo pip install nrfutil

download and install J-Link Software and Documentation Pack

Build commands
scons           //build

scons flash     //flash to device

scons clean     // remove target folder
Build project with Windows OS

Currently we don't have a running build environment under Windows but you can build the target files with the Ubuntu subsystem for Windows 10.

Windows 10 Ubuntu Subsystem

If you already installed the subystem you can skip the steps 1 to 4.

  1. enable "Windows Subsystem for Linux" under Windows Features

  2. download Ubuntu-App from the Microsoft Store

  3. open command promt and enter "bash"

  4. now you are in the Ubuntu system

in the subsystem, first do an update

sudo apt-get update

now please follow the steps under Build project with Linux OS.

currently we can build target files but not flash them on the chip out of the Linux subsystem.\ For flashing a device you can use the nRF Connect for Desktop tool with your Windows host system.