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
- DMOSDK depends mainly on three compoments:
arm-none-eabi-gcc
,make
andpython3
. On Debian-based systems,arm-none-eabi-gcc
is namedgcc-arm-none-eabi
. Install the packages:
|
|
- Clone the repository:
|
|
- Test the firmware generation with the
blinky
example:
|
|
- Upload the binary (flash the target)
- via USB using OpenOCD,
- or using a Debuggoid by following this how-to.
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:
|
|
Create a new project
To generate a new project, build the following source tree:
- Create a directory for your project
- Write a
Makefile
that defineDWM1001_FRAMEWORK_PATH
and includesbuild_tools/common.mk
- Configure the software libraries with
make menuconfig
- Write your application’s code with at least a
main
function - Compile with
make