This project aims to be a template for building applications in a Linux environment using the nRF51822 chip from Nordic Semiconductors.
You can download it from here. If you
are using a system with apt-get, there is a PPA
here.
You can download the linux version from here. You'll need to provide a original serial key to access the files.
This project was tested using version 474. It may not work against
other versions.
You can download it from here. You'll need to provide a original serial key to access the files.
The file is a Windows executable file. But you can use wine to install it.
This project was tested using version 4.3.0.27417. It may not work against
other versions.
The Makefile contains the general build process and should be generic. You
need to edit Makefile.project to add project specific configuration. The
current Makefile.project contains configuration to build an example blink
application (implemented by src/main.c).
These are the variables you can put inside Makefile.project:
Full path to Nordic nRF51 SDK. This variable should contains to the root of the SDK.
Full path to JLINK software.
Specify the current SoC. Possible values are defined in nrf.h.
####SOC_VARIANT
Specify the variant of the SoC. Possible values are xxaa (256 kb) and xxab
(128 kb).
Specify the board. Possible values are defined in boards.h.
Specify if the Soft Device is going to be used or not. Possible values are
s110 and blank.
Path to the hex file containing the softdevice.
Specify the name of the build target.
- PROJECT_CFLAGS
- PROJECT_LDFLAGS
- PROJECT_INCLUDE_PATHS
- PROJECT_C_SOURCE_PATHS
- PROJECT_C_SOURCE_FILES
- PROJECT_ASM_SOURCE_PATHS
- PROJECT_ASM_SOURCE_FILES
The Makefile contains the following rules:
makewill build the firmware and put it insidebuilddirectory. *make cleanwill erase thebuilddirectory.make erasewill erase the firmware inside nRF51.make installormake uploadwill flash the firmware inside nRF51.make softdevicewill flash the softdevice inside nRF51 (it will first erase the flash).