Create RXF Library


It is a good idea to use a library for the RXF 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 relies on using libraries for the RXF and CMX-RTX, and support the two buildsets Debug and Release.

We provided a complete µVision 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 Workspace as described on the section how to change derivate, but please do so after the demo.

The CreateRXFLibrary Project Workspace is installed in <your Rhapsody>\Share\WST_RXF_V5\<your product>\Samples\Code which Project Workspace you can open in µVision:






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



Make the other project active, and rebuild that library too:




You can inspect the settings for each µVision Target:



You will notice that only a few things are set:
The two µVision Targets result in the libraries RXFD.lib and RXFR.lib

NOTE The options or constants set via CppCompileSwitches in your Buildsets must match the options in your µVision 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.
The same applies to the settings of Device and Target CMX-RTX libraries which you created and the GettingStarted demo which uses the RXF and CMX-RTX libraries.

If you need a different derivate, you can modify the settings on the Device and Target Tabs in for both µVision Targets RXFD and RXFR included in the Project Workspace 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.