yotta is a tool that we're building at mbed, to make it easier to build better software written in C, C++ or other C-family languages. It's still early in development, so if you have questions/feedback or issues, please report them.
Detailed instructions can be found on the documentation site, in summary, to use yotta you need:
- yotta itself (yotta is runs in python, and is installed using pip. Version 2.7.9 of python is recommended.)
- CMake
- a compiler
To install yotta itself, open a terminal, then run:
pip install yotta
If permission is denied, you may need to run sudo pip install yotta
, and you may need to first install Python 2.7 and pip, if you do not already have them.
Install CMake from the CMake download page, or using your system's package manager. Make sure to check the option in the installer to add it to your path.
Which compiler you need depends on whether you're building programs for your host system, or cross-compiling them run on an embedded device:
- to cross-compile, install arm-none-eabi-gcc.
- to compile natively on OS X, install Xcode, including the command-line tools.
- to compile natively on Linux, install clang with your system's package manager.
Further information on installing yotta for different platforms can be found on the documentation site.
The best way to get started is to follow the tutorial.
yotta downloads the software components that your program depends on (it's similar in concept to npm, pip or gem). To install a new module, you run yotta install --save <modulename>
, and yotta will install both the module you've specified and any of its dependencies that you don't already have installed, and save the fact that you depend on that module into your module's description file.
To really understand how yotta works, you should install yotta (see above), then follow the tutorial.
For further documentation see the yotta docs website.
yt
is a shorthand for theyotta
command, and it's much quicker to type!- yotta is strongly influenced by npm, the awesome node.js software packaging system. Much of the syntax for module description and commands is very similar.
yotta is licensed under Apache-2.0