Creating a Real Time Process (RTP) Project

Creating an RTP project for Ada development is easy with the GNATbench wizard.

There are two ways to select and invoke the wizard. You can either use the menu bar and select "File" and then "New", or use the contextual menu and select "New". In either case you should then select "Project..." as shown in the following figure:

new project menu

Selecting "Project..." will bring up a dialog box showing all the new-project wizards, organized by category, so that you can choose which one to invoke.

If necessary, expand the "GNAT Pro Ada for VxWorks" category to show the two wizards offered there. As their names indicate, one wizard creates a new Downloadable Kernel Module project and the other creates a new Real Time Process project.

new project wizard showing RTP selected

You want the RTP project creation wizard so click on that wizard name to select it and then press Next.

The first page of the new-project wizard (shown in the next figure) will appear. Here, you enter the name of the Ada main subprogram and choose whether you want the wizard to generate the file containing that unit. If you do choose to have the file generated, it will contain a procedure with that unit name and a null statement body.

new project wizard ada main subprogram page

After the main subprogram name is entered you can press Finish. This will end the first part of the wizard execution. Then, the Workbench wizard is automatically invoked so that you can configure the new RTP project (see figure below).

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 "standard" build mechanism. 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

From this point in the wizard execution, you can continue to press Next until you get to the last page and then press Finish, or simply press Finish now. Either way you want to take the remaining defaults. The new project will be created for you when you press Finish.