Setting up new hardware targets
You can modify the files provided by Rhapsody® to match your development environment, or create a new set of files to support your specific target.
About this task
You can add support for a new target to be used with the MicroC framework (MXF) that matches your development environment. In this task you will add the appropriate files and definitions that define a new Environment to be used by a code generation Configuration to generate and build an application targeting your specific hardware. This task is also called retargeting that means, for example, supporting a new hardware target.
- A set of properties, defining the various characteristics of the files related to a specific target and the way to build an application for that target, also referred as an Environment.
- A set of files, called adapter, that defines the target specific implementation for hardware related capabilities such as hardware timer, communication, and so on.
The set of the properties used by the code generation's Configuration is determined by the Environment dropdown list located on the Settings tab of the Features dialog for that configuration.
The contents of the Environment dropdown list is taken from the enum definition of the C_CG::Configuration::Environment property.
In addition, Rhapsody includes a number of target-specific file sets. Each set of files defines an adapter for the MicroC Execution Framework (MXF). The adapters can be found in the appropriate product installation subdirectory under <Install-Dir>\Share\LangC\mxf\Adaptors\Mainloop.
To create a new Target you are required to create a similar set of files that adapt the MXF to that target.