Step By Step Instructions for Typical Use Cases
18/89
NXHX 52-JTAG | Getting Started
DOC131004GS02EN | Revision 2 | English | 2013-11 | Released | Public
© Hilscher 2013
5.3
Using Waf to Build an ELF File from a Single rcX
Application Example
5.3.1
Overview
If you don’t want to build all application examples at once (as described in
the preceding section), you can use the Waf build option “
--target=
” to
specify a certain single example that you want to build. This section
describes how to use Waf to produce a single ELF file from the
rcX Tasks
application example provided in the
Examples and
API\Targets\rcX\1. rcX Tasks
directory on the product DVD.
You can start the build process from a command prompt or from a
customized
Build.bat
batch file; both methods are described in this section.
If you want to produce ELF files from different examples and for different
purposes at different times (i. e. debugging or release), you can create
separate customized
Build.bat
batch files for each target and purpose.
Note, that you have to specify the exact name of the application example
that you want to build. How to find out the exact name of an application
example is described in step 1 of these step-by-step instructions.
5.3.2
Prerequisites
You have installed
Code Sourcery G++ Lite for ARM EABI
on your
development PC (see
Installing Code Sourcery Compiler on Your
section on page 15).
You have copied the
Examples and API
folder from the product DVD
to a local path on your development PC.
5.3.3
Step-by-Step Instructions
1. Find out the name of the application example which you want to build.
Open the folder of the application example. In this case, it is the
Examples and API\Targets\rcX\1. rcX Tasks
folder.
In
the
1. rcX Tasks
folder, open the
wscript
file with an editor, e. g.
Notepad
.