Generating ARXML and C code

You can generate AUTOSAR XML (ARXML) and C code.

About this task

Rational Rhapsody generates AUTOSAR internal behavior elements and AUTOSAR implementation elements that are synchronized with the generated C code. By default, new AUTOSAR elements are generated. However, for the elements in the following table, it is possible to use, or “connect to,” existing elements in the AUTOSAR design.
Table 1. AUTOSAR implementation elements
AR elements Connection description
InternalBehavior x x points with 1_component to the implemented software component type.
Runnable x x points with l_RIMBO to a Rational Rhapsody implementation block object (RIMBO) and with l_runnableFunction to an active element in the Rational Rhapsody implementation block (RIMB) typing the implementation block object.
Exclusive area x x points with l_guardedRIMBO to a Rational Rhapsody implementation block object.
Inter Runnable Variable x x points with l_RIMBO to a Rational Rhapsody implementation block object and with l_IRVAttribute to an attribute in the Rational Rhapsody implementation block typing the implementation block object.

For example, if in an AUTOSAR design, an internal behavior points with l_component to the software component type being implemented, that internal behavior is used instead of a newly generated element. Similarly, if a runnable in the AUTOSAR design points with l_RIMBO to a Rational Rhapsody implementation block object and points with l_runnableFunction to an active element in the implementation block that is typing the Rational Rhapsody implementation block object, another runnable is not generated for that active element per that Rational Rhapsody implementation block object and instead uses the pointing runnable.

Procedure

To generate ARMXL and C code:

  1. In the browser, highlight the configuration for which you want to generate C code.
  2. Select Code > Re Generate > Entire Project. The Export window for AUTOSAR opens.
  3. Browse to and select the directory and XML file to receive the exported XML code. Click Export.

Feedback