Installing dev tools

This tutorial details the steps to install the software development tools for the DecaWave Module Open Software Development Kit (DMOSDK) on a Debian-based GNU/Linux system, then create a new project based on DMOSDK.

Toolchain and framework installation

Two methods are available:

  • traditional tools installation,
  • via docker.

Method 1: Traditional Tools Installation

  1. DMOSDK depends mainly on three compoments: arm-none-eabi-gcc, make and python3. On Debian-based systems, arm-none-eabi-gcc is named gcc-arm-none-eabi. Install the packages:
1
 sudo apt-get install gcc-arm-none-eabi make python3 
  1. Clone the repository:
1
 git clone https://github.com/irit-rmess/DMOSDK.git
  1. Test the firmware generation with the blinky example:
1
2
cd DMOSDK/examples/blinky
make
  1. Upload the binary (flash the target)

Method 2: Using a Docker image

To avoid dealing with the tools installation, a Dockerfile to build an all-in-one image is provided under docker.

Compilation and debug can be done inside a container:

docker run -it -v $(pwd):/dmosdk iritrmess/dmosdk:latest

Build the code documentation

You can build the code documentation using Doxygen:

1
2
3
sudo apt-get install doxygen
cd doc
./generate_all_html_doc.sh

Create a new project

To generate a new project, build the following source tree:

  • Create a directory for your project
  • Write a Makefile that define DWM1001_FRAMEWORK_PATH and includes build_tools/common.mk
  • Configure the software libraries with make menuconfig
  • Write your application’s code with at least a main function
  • Compile with make