This page serves as the documentation for the Firmware collection, also known as the Dooba SDK - a set of libraries and applications for the Maker community.
Where to start?¶
If this is your first time here, we recommend you have a look at Getting started before anything else.
- 1 - Getting started
- 2 - Setup instructions
- 3 - Source tree
- 4 - Building with dbuild
- 5 - Tutorials
The SDK can be used in different ways.
- For the most simple use cases, just downloading the repository is enough - you can start coding directly in the source tree.
- If you're looking for a more "proper" setup, check out setting up a separate workspace
To get all the details, go check out the setup instructions.
SDK Organization¶At the root of the distribution, the following are available:
- src - Source code tree
- dbuild - Build Script
- util - Utility scripts
src contains the source tree, containing all firmware elements, both libraries and applications.
The build script, when run, collects elements from the source tree and builds them, recursively including their dependencies.
Building the source tree is as simple as running the dbuild script:
Firmware images (.hex files) will be placed in out/bin (from your current working directory).
The dbuild script is actually pretty smart - check out building with dbuild for more info.
Flashing will require avrdude. This is should usually be available in your operating system's package repositories (YUM / APT / Portage).
The following command will flash a project called foobar_test to an ioNode connected to USB as /dev/ttyUSB0 (adapt the paths and other arguments to your liking):
avrdude -c arduino -P /dev/ttyUSB0 -p atmega1284p -U flash:w:out/bin/foobar_test.hex