02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

! WARNING: Use of the project facility for configuring and building applications is<br />

largely independent of the methods used prior to <strong>Tornado</strong> 2.0 (which included<br />

manually editing the configuration files config.h or configAll.h). The project<br />

facility provides the recommended and simpler means for configuration and<br />

building, although the manual method may still be used (see VxWorks<br />

Programmer’s Guide: Configuration and Build).<br />

To avoid confusion and errors, the two methods should not be used together for<br />

the same project. The one exception is for any configuration macro that is not<br />

accessible through the project facility GUI (which may be the case, for example, for<br />

some BSP driver parameters). You can use a Find Object dialog box to determine if<br />

a macro is accessible or not (see Finding VxWorks Components and Configuration<br />

Macros, p.118). If it is not accessible through the GUI, a configuration file must be<br />

edited, and the project facility will implement the change in the subsequent build.<br />

The order of precedence for determining configuration is (in descending order):<br />

project facility<br />

config.h<br />

configAll.h<br />

For any macro that is exposed through the project facility GUI, changes made after<br />

creation of a project in either of the configuration files will not appear in the project.<br />

Terminology<br />

There are several key terms that you must understand before you can use the<br />

project facility effectively:<br />

Downloadable application<br />

A downloadable application consists of one or more relocateable object<br />

modules, 1 which can be downloaded and dynamically linked to VxWorks, and<br />

then started from the shell or debugger. A novel aspect of the <strong>Tornado</strong><br />

development environment is the dynamic loader, which allows objects to be<br />

loaded onto a running system. This provides much faster debug cycles<br />

compared with having to rebuild and re-link the entire operating system. A<br />

downloadable application can consist of a single file containing a simple “hello<br />

1. The text and data sections of a relocateable object module are in transitory form. Because of<br />

the nature of a cross-development environment, some addresses cannot be known at time<br />

of compilation. These sections are modified (relocated or linked) by the <strong>Tornado</strong> objectmodule<br />

loader when it inserts the modules into the target system.<br />

92

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!