This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Way to Exclude softdevice and compile, NRF SDK16 example project

The goal is to be able to automate build using CMake. I am evaluating this by trying to build example project in nrfSDK 16.(I chose saadc example from nRF5_SDK\examples\peripheral\saadc)

The CMakeLists file and supporting scripts were taken from this and modified.

I am able to CMake to generate build files. Next, When I invoke make, I get the error 

/home/bharath/Nordic_Semi/components/libraries/log/src/nrf_log_backend_rtt.c:40:
/home/bharath/Nordic_Semi/components/libraries/util/app_util.h:133:10: fatal error: nrf_mbr.h: No such file or directory
 #include "nrf_mbr.h"

I found that file "nrf_mbr.h" is a part of softdevice. Is there a way to exclude softdevice and compile this?

Also, I am successfully able to compile the saadc example using armgcc Makefile at  nRF5_SDK\examples\peripheral\saadc\pca10056\blank\armgcc\. This file does not include any softdevice and still is able to generate hex files. I am looking for a solution similar to this.

Any help is appreciated. Thanks!

Parents Reply Children
No Data
Related