4.4.2. Creating a Real Time Process (RTP) Project on Wind River Workbench 3.x

Creating an RTP project for Ada development is easy with the Wind River wizard and GNATbench project converter. Disabling Standard Managed Builds

As of Wind River Workbench 3.0, “Flexible” managed builds are used by default and “Standard” managed builds are deprecated. New GNATbench projects must employ Flexible managed builds.

Therefore, set the options on the Wind River “Build” preference page as shown below to disable Standard managed builds. You must also ensure the option to “Create default build targets for new projects using flexible managed build” remains enabled.

enabling standard build pref page Creating and Configuring the Project

The first step is to invoke the wizard. In the Application Development perspective, use the menu bar and select “File”, then “New”, and then the list of project types will be displayed in the menu, as shown in the following figure:

new project menu

We want the RTP project creation wizard so we click on the wizard named “VxWorks Real Time Process Project”.

The wizard will open so that you can configure the new RTP project:

new RTP project wizard project name page

Enter the name of the new project and choose where the new project files will reside. Typically this location will be the workspace so you can take the default, but otherwise take one of the other choices as appropriate. Press Next.

Another wizard page will appear, allowing you to select the builder characteristics. You should choose the default “Flexible” build mechanism. Ordinarily the option to use “Standard” managed builds for a new project should be disabled. Press Next.

new RTP project wizard build setup

The next page (below) allows you to configure the build command and how the result is processed. Take all the defaults and press Next.

new RTP project wizard build support

The next page (below) allows you to configure the build spec (or specs) for the project. Select one or more, depending on your given hardware. *Be sure to select the GNU version of any given build spec.* Press Next once you have made your selections.

new RTP project wizard build spec

The next page (below) allows you to configure a build target name and tool for the project. Take all the defaults and press Next.

new rtp project wizard build target

The next page (below) allows you to configure the source code indexer for the project. This is a C++ tool so it is not pertinent to GNATbench projects. You can either take all the defaults and press Next, or disable the indexer altogether. It will not cause difficulties later if you choose to take the defaults. In the figure below we show how to disable the indexer.

new RTP project wizard indexer

You can now press Finish. The new project will be created and you will see it in the Project Explorer, like so:

new rtp project before conversion Extending the Project for Ada and GNATbench

Finally, you must extend the new project to support Ada via GNATbench. This step is essential. This step must be performed before any functionality for Ada builds, language-sensitive editing, et cetera is invoked. See Extending Existing Wind River Workbench Projects for Ada for the extension process.

In the extension wizard you will likely want to select the option “Create a new GNAT project file”. This option will walk you through the steps of defining a new project, including source and object folders and so forth, and will create everything you specify.

Once the project is converted to a GNATbench project it is ready for use. All the previous Wind River Workbench functionality is still available, and all the additional Ada functionality has been integrated.

Note the file containing the main subprogram. This file will have the name we specified, “test_rtp.adb”, and will contain a procedure with that unit name:

rtp main subprogram in editor

In a real application we would alter the content of the main subprogram. It is a buildable subprogram, though, without any changes.