Creating a TDP
This topic provides a typical example workflow for creating a new target deployment port (TDP) for a C compiler.
About this task
- IBM® Rational® Test RealTime and its underlying TDP technology.
- The target platform hardware and software architecture.
- The target development environment.
Procedure
- In the Target Deployment Port Editor, at the top of the Navigation area, right-click the TDP name and type a new name.
- Specify all the Basic settings. Create intermediate keys to help with future changes and save the TDP.
- In Rational® Test RealTime Studio, open the add.rtp project which is located in examples/TDP/tutorial. This is a simple project that can be used for debugging target deployment ports.
- Click Verbose. and select
- Click OK. to create a new configuration, and select the new TDP. Click
- Select the new configuration based on the new TDP.
- Click Target Deployment Port Editor will be ignored in the project. Therefore, you must duplicate or copy any changes in the configuration settings. and remove all instrumentation. At this point any modifications of the DEFAULT_xxxx in the
- In the project browser, right click add.c and select Compile. Check that the object file is generated in the correct directory. If any problems occurred, open the Target Deployment Port Editor and correct the problems in . Repeat this step until add.c is properly generated.
- In the examples/TDP/tutorial/xdp name directory. settings, enable coverage instrumentation only and remove all files located in the
- In the project browser, right click add.c and
select Compile. The instrumentation occurs
after the preprocessing and before compilation. Check the .i file
is generated properly in the correct directory and that it contains
#line xx "fileName"
or# xx "fileName"
. If any problems occurred, open the Target Deployment Port Editor and correct the problems in . Repeat this step until the .i file is properly generated. - Check that add.o or add.obj is generated in the correct directory and not a file named add_aug.o or add_aug.obj. If any problems occurred, open the Target Deployment Port Editor and correct the problems in . Repeat from step 9 until add.o or add.obj are properly generated.
- In the project browser, right click TP.c and select Compile. Check that TP.o or TP.obj are generated in the correct directory. If any problems occurred, open the Target Deployment Port Editor and correct the problems in Library Settings. Repeat this step until TP.o or TP.obj are properly generated.
- Check that Test.exe is generated in the correct directory.
If any problems occurred, open the Target Deployment Port Editor and correct
the problems in Build Settings > Link function. Repeat this step until
Test.exe is properly generated. Note: Any files added in the TDP Editor Build settings are located in $TARGETDIR/cmd by default.