Create RXF Library


OO RTX

It is a good idea to use a library for the OO RTX which you can link with your application. This will decrease its footprint, because unused functions will not be allocated by your linker. Our example GettingStarted also relies on using libraries for the OO RTX, and support the two buildsets Debug and Release.

We provided a complete EDE project CreateRXFLibrary to build your libraries, which match the Blinky example. If you need a different derivate, you can modify the settings in the projects included in the Projectspace as described on the section how to change derivate, but please do so after the demo.

The CreateRXFLibrary Project Space is installed in <your Rhapsody>\Share\WST_RXF_V5\<your product>\Samples\Code which Project Space you can open in the EDE:






Build or rebuild the libraries. We already inserted references to the C sources and include files of the OO RTX which are installed in <your Rhapsody>\Share\WST_RXF_V5\<your product>\Source:



Make the other project current with your RHS mouse button, and rebuild that library too:




You can inspect the Project | Project Options...:



You will notice that only a few things are set:
The two EDE Projects result in the libraries RXFD.lib and RXFR.lib in the directory <your Rhapsody>\Share\WST_RXF_V5\<your product>\Samples\Code\CreateRXFLibrary

NOTE The options or constants set via CppCompileSwitches in your Buildsets must match the options in your EDE project CreateRXFLibrary to create RXF libraries. You should not compile the libraries with for example support for UML ports, or use highwatermarks in a debug version, and use different options to compile your application with.

If you need a different derivate, you can modify the settings on the Device and Target Tabs in for both EDE projects RXFD and RXFR included in the Project Space as described on the section how to change derivate, but please do so after the demo.



Copyright (c) Willert Software Tools GmbH. All rights reserved.