TOC PREV NEXT INDEX DOC LIST MASTER INDEX



Configuring Tornado/VxWorks

This chapter describes the minimum services required by a Tornado system image in order to support an Ada program. It also describes the various ways of combining an Ada program and the Tornado system image to form bootable, stand-alone, and ROMable images.

The following topics are covered in this chapter:


Required Tornado Services

To Communicate With the Host

In order for VxWorks to be able to communicate with the host platform, the services provided by INCLUDE_NETWORK, along with one of the network interfaces listed in the table "Key VxWorks Options" in the Configuration chapter of the VxWorks Programmer's Guide from Wind River must be set up. This configuration must be included in the VxWorks system image.

To Use MATH Package

In order to use the MATH package from vads_compatibility.ss, the following service must be included in the VxWorks system image:

Tornado 3.0/VxWorks AE

To use VxWorks AE with Rational Apex Embedded for Tornado, the following services must be included in the VxWorks system image:

INCLUDE_ANSI_TIME_LOCALTIME
INCLUDE_ANSI_MKTIME


Alternate Configurations

The development strategy for Apex described in Getting Started and the Programming with Rational Apex Guide for loading and running Ada applications is suitable for the early phases of the development cycle, but most developers, at some point, want to create bootable, stand-alone versions of the application. This section describes the various ways of combining the Ada program and the VxWorks system image.

Creating a Bootable Ada Application

A bootable Ada application is a fully linked Ada application that is linked with the VxWorks system image, and, optionally, started from the VxWorks initialization code. In order to create a bootable Ada application, you should create a fully linked Ada application but rather than load it using the Tornado loader services, link the Ada application with the VxWorks system image.

You can do this by converting the Ada application to the object module format supported by VxWorks and then modify the VxWorks Makefile to include the converted object file. Refer to Table 3 for your specific processor's conversion format.

If you are working with Tornado 2.0, modify the following line in the VxWorks Makefile:

to contain the converted Ada object file.

If you are working with Tornado 3.0 AE, modify the following line in the VxWorks Makefile.system:

For example, if your fully linked Ada application was called hello and you were using Tornado 2.0 for PowerPC, you would do the following:

Modify the Makefile:

Optionally, if you wish to start the Ada application from the VxWorks initialization code, add the necessary code to the usrRoot() routine in usrConfig.c. This code could simply be a call to _start(), or it could be a call to taskSpawn() with _start as the entryPt argument.

Note: Depending on your target, you may have to add two leading underscores to the "start" symbol name.

68k Only

Edit the usrConfig.c file and add the following line to the beginning:

Next, in the usrRoot() function, give an example for starting up the application:

PowerPC, MIPS Only

Edit the usrConfig.c file and add the following line to the beginning:

Next, in the usrRoot() function, give an example for starting up the application:

Creating a Bootable, Stand-Alone Ada Application

A bootable, stand-alone application is a fully linked Ada application that is linked with a stand-alone version of the VxWorks system image, and, optionally, started from the VxWorks initialization code. In order to create a bootable, stand-alone Ada application, you should follow all of the steps above, but then invoke the Makefile with:

Creating a ROMable Ada Application

A ROMable Ada application is a bootable, stand-alone Ada application that is suitable for placing into ROM. As such, all of the steps above for creating a bootable, stand-alone Ada application apply to making a ROMable Ada application. The only difference is the target you specify when invoking make. To make a bootable, stand-alone Ada application with a symbol table:

Alternatively, you can remove the symbol table, and make:


Configuring a Serial Port

To load Ada programs from a serial tip session and not WindSH, you must include the following services in the Tornado system image:

For additional information, refer to the WindRiver documentation.

Default configurations and available services are included in the file WIND_BASE/target/config/all/configAll.h for Tornado 2.0. Under Tornado 3.0 AE, the services will be added to the project.wcf file.


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2002, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS