Create
RXF Library
You can use a CreateRXFLibrary project in your
Workspace which you can use when building your application like for example GettingStarted. This library project must support the Build Configurations Debug and Release with the following options set:
- Debug
- NIOS II Compiler Preprocessor, Defined Symbols:
- General:, Include Paths:
- <your altera>\components\altera_nios2\HAL\inc
- ${workspace_loc:/GettingStarted_syslib/Debug/system_description}
- ${workspace_loc:/CreateRXFLibrary/Source}
- R:\WST_RXF_V5\<your product>\Source
- Release
- NIOS II Compiler Preprocessor, Defined Symbols:
- General:, Include Paths:
- <your altera>\components\altera_nios2\HAL\inc
- ${workspace_loc:/GettingStarted_syslib/Release/system_description}
- ${workspace_loc:/CreateRXFLibrary/Source}
- R:\WST_RXF_V5\<your product>\Source
Most of the RXF sources can be compiled into a library, but some not. The files RxfConstants.h
and RxfDimensions.h are generated per Rhapsody model - for example the
size of an event queue is model specific. Therefore some RXF files must
be compiled with your application project, which means you must exclude
these from the build process in a RXF library project. Furthermore,
some files may be project specific and therefore should be build as
part of your application.
You must exclude the following files from being build:
- RiCDimension.c
- RiCOSDimMemoryAllocation.c
- RiCOSembOSDimension.c
- WST_RXF_Main.c
- WSTCompiler.c
- WSTEpilog.c
- WSTProlog.c
- WSTRTOS.c
GettingStarted_syslib
Because there are references to include files which reside in the
GettingStarted_syslib project, you must rebuild that first (both build
configurations). project must support the Build Configurations Debug
and Release with the following options set:
- Debug
- NIOS II Compiler Preprocessor, Defined Symbols:
- ALT_DEBUG
- OS_LIBMODE_DP which is defined by SEGGER
- General:, Include Paths:
- <your altera>\components\segger_embos\embOS\inc
- Release
- NIOS II Compiler Preprocessor, Defined Symbols:
- ALT_RELEASE
- OS_LIBMODE_R which is defined by SEGGER
- General:, Include Paths:
- <your altera>\components\segger_embos\embOS\inc
If the syslib does not match your device, please do as follows (we use the DBC3C40 Cyclone III eva board as example):
- use the RHS mouse button to close and delete the syslib project. Select NOT to delete its contents


- use the RHS mouse button to import the syslib project which was originally used:



- select the appropiate .ptf file for SOPC Builder System
- select the properties of the new syslib with your RHS mouse button and verify the memory and timer settings:
embOS does not support a separate exception stack so leave this unchecked.
- the Workspace now shows a syslib based on a different SPOC Builder System:

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