Rev 3 9/21/17
37
41110479
A
A: Develop and Test applications
In this section, you will learn how to develop applications in the Legato development environment, install them onto
your mangOH Red, and test that they run.
Legato provides two interfaces for developing applications:
•
CLI—Command Line Interpreter in a terminal window.
•
Developer Studio—A GUI (Graphical User Interface) development environment.
This section describes development using CLI.
A.1 Develop using the CLI—Command Line Interpreter
A.1.1 Configure the Dev Machine’s Terminal Windows for
Development
To use the CLI in a terminal window to compile and build applications, you must configure the window to work with
Legato tools.
Each time you open a new terminal window, do the following:
1.
Configure the window:
$ cfglegato
Note:
You will be updating application source code in this section. Use whichever editor you prefer—
these instructions do not refer to a specific editor.
Note:
This tutorial touches on the basics of using the Legato development environment. After completing
the examples in this chapter, see
http://legato.io/legato-docs/latest/mangOH_developers.html
for detailed
references, forums, etc.
Note:
If you installed Legato to a subdirectory of your home directory using a different name than
’legato’, replace "~/legato" with "~/<yourDirectory>" in the commands in this section.
Note:
One thing the command does is check to see which toolchains you have on your development machine and
warn you about any that are missing. Since you have loaded only the wp85 toolchain, warnings appear about the
others. You can ignore these messages.
Power is OFF
Ignore these toolchain warnings.