Application development

C/C++ application development

Application development is only supported for Linux development machines. Digi recommends you use a PC running a recent Ubuntu distribution.

Application development has two distinctive phases:

For application development and debugging, you do not need to build the Digi Embedded Yocto distribution from source as developers can use the pre-compiled images to run and debug applications. However, integrating the application into Digi Embedded Yocto requires you to build the whole Digi Embedded Yocto distribution as explained in System development, and also to develop Yocto recipes to build your specific application. See System development.

Application development and debugging

Digi Embedded Yocto provides a pre-compiled C/C++ toolchain that matches the default core-image-base image. You can use it to cross-compile applications to run on Digi embedded platforms.

Install the pre-compiled toolchain

  1. Download the toolchain from Digi's support page.
wget ftp://ftp1.digi.com/support/digiembeddedyocto/2.2/r3/sdk/ccimx6ulstarter/fb/dey-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r3.sh
  1. Install the toolchain on your host PC.
chmod +x dey-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r3.sh
./dey-glibc-x86_64-core-image-base-cortexa7hf-neon-toolchain-2.2-r3.sh

Build a C/C++ application using Makefiles

  1. Set up the build environment.
source /opt/dey/2.2-r3/environment-setup-cortexa7hf-neon-dey-linux-gnueabi
  1. Build the source using make.
make

This document does not cover application development, debugging and tracing, and how to integrate your application into Digi Embedded Yocto. You can find references on these topics as well as other common tasks such as setting up development environments like Eclipse and QT creator, in the References page.