Project

General

Profile

Working directly in the SDK

Introduction

This page documents one of the main options for working with the Dooba SDK: coding directly in the SDK.
If you haven't downloaded the SDK yet, we suggest you do that first. Follow the setup instructions to get started.

What does it mean?

As explained in the source tree presentation, firmware elements (applications / libraries) are folders in the /src directory of the SDK.

The simplest way to start working is to add your code directly inside the SDK source tree.

Creating the element

Start by creating a folder for your application (or library) in the /src directory of the SDK, where all the other provided libraries reside.

# Enter SDK Root
cd DoobaFirmware

# Create folder for new element
mkdir src/hello_world

Defining the element

The next step is creating an element definition file: dfe.conf
This file is a tiny YAML definition of the firmware element. Its structure is defined here: element definition.

At the very least, we need to specify a name and a type.
If we're defining an application, we also need to specify a target MCU and operating frequency.

# Application Name
name: hello_world

# We're defining an application
type: app

# Targeting the ioNode - ATMEGA1284P @ 10MHz
mmcu: atmega1284p
freq: 10000000L

Writing source code

Finally, we can start adding source code and binary resources to our project.
Create a src folder inside your element's folder. This is where all source files and resources should reside.

mkdir src/hello_world/src

Now fire up your favorite text editor and have fun :)