Creating your own targets¶
This section describes how to create a new build target for your own mesh application.
Creating a new build target¶
The easiest way to create a new build target is to:
-
Copy one of the example folders in
nRF5-SDK-for-Mesh
, e.g.,examples/my_beaconing
toexamples/my_app
. -
Add the folder to the
examples/CMakeLists.txt
with aadd_subdirectory("my_app")
command. -
Modify the target name in the first line of
examples/my_app/CMakeLists.txt
toset(target "my_app")
. -
Open terminal and change directory to:
cd ./grove-mesh-kit
-
Creat a
build
folder and change directory to it:mkdir build && cd build
-
Generating build files with
cmake -G Ninja -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf52840_xxAA -DBOARD=nrf52840_mdk -DFLASHER=pyocd ../nrf_sdks/nRF5-SDK-for-Mesh/
-
Build your new target with:
ninja my_app
-
Flash the target:
ninja flash_my_app
API Reference¶
Check out the Mesh API Reference for resources.
Create an Issue¶
Interested in contributing to this project? Want to report a bug? Feel free to click here: