Status

Date

Doc Version

Applicable

Confidentiality

RELEASE

18 Mar 2025

1.1

All

PUBLIC

Wirepas provides the complete compilation environment to compile your apps. We rely on Docker and provide the Docker containers with all the necessary tools to compile an application.

 

Once Docker and SDK folders are installed and ready to use (please refer to this link and this link), follow the below steps to build an application.

 

1 - Open a WSL2 Terminal, and navigate to your Wirepas SDK folder.

2 - Type below command to build the application in the terminal. Please note that relative path are not supported.

docker run --rm -v $(pwd):/home/wirepas/wm-sdk-PROFILE -w /home/wirepas/wm-sdk-PROFILE -ti wirepas/sdk-builder:v1.5 make app_name=your_app target_board=your_board

NOTES:

  • the “--rm“ command line option is used to automatically clean-up the container’s file system after each build. 
  • The above command uses the application code in the SDK on the local machine to generate the application binary using the docker's build environment. Here are the details of the command format:
    • -PROFILE” may be replaced with the profile suffix if any (5G, 2_4 or SubGhz).
    • "app_name=your_app" is the pointing to the application code. In the example, your_app is being compiled.
    • "target_board=your_board" is the selecting the relevant board to compile & build the application code. Modify the http://config.mk in the application source folder to define the set of compatible boards the application can be built for.  
    • “wirepas/sdk-builder:v1.5”: This tag is used to select the proper Docker image and depends on the SDK version in used. Tag is v1.5 for existing versions. See below for a compatibility matrix.
    • "/home/wirepas/wm-sdk-PROFILE" is the mounting point of the location folder in Docker and should not be changed
    • "make" is the command to compile the application in Docker and should not be changed
    • More details on the build command can be found in SDK documentation here.

Important notice: SDK-Builder is a container that provides all compatible tools for building the firmware. Hence, the selected version depends on the SDK and Stack versions used. Please see below a compatibility matrix between SDK version and SDK-Builder version.

 

SDK v1.2.X

SDK v1.3.x

SDK v1.4.X

SDK v1.5.1+

SDK-Builder Version:

1.2

1.3

1.3

1.5

  • At first execution:
    • docker will automatically download the proper container from dockerhub.
    • You will be prompted to review the license
    • You will be prompted to input or generate Bootloader keys. Please note that for Wirepas 5G Mesh profile, the asymmetric keys are required.

Note: This How To only focuses on having a functional build environment.

Clean the build

Use the following command to clean the build:

docker run --rm -v $(pwd):/home/wirepas/wm-sdk-PROFILE -w /home/wirepas/wm-sdk-PROFILE -ti wirepas/sdk-builder:v1.5 make app_name=your_app target_board=your_board clean

Most of the parameters are the same as for the build command.

The command is executed as previously done, but with additional tag "clean", to clean the earlier build.

NOTE: You need to clean the build if you modify http://config.mk  file, in example to change network parameters.

 

Create you own application

You can now start to develop your custom application code and follow the above steps to compile and build the application. You can find more details on how to create you own custom application from the following chapter in SDK documentation.

 

Revision History

Date

Version

Notes

06 May 2024

1.0.0

Initial version.

18 Mar 2025

1.1.0

Typos and paging

Legal Notice

Use of this document is strictly subject to Wirepas’ Terms of Use and Legal Notice.

Copyright © 2025 Wirepas Oy