AUTOSAR Classic Component Code Generation Files
When you build a Simulink® model configured with the Embedded Coder® (ERT) target, Simulink generates a main C file, model files, and shared files. For
more information about files generated for a model with Embedded Coder configuration, see
Manage Build Process Files (Embedded Coder).
When you build an AUTOSAR Classic component model, along with the main
C file, model files, and shared files, Simulink exports Run-Time Environment (RTE) files and ARXML files that comply with
AUTOSAR Classic Platform specifications. The generated C code contains RTE function calls
such as Rte_Read and Rte_Write. Simulink generates a stub folder that contains the necessary implementations to build
the RTE functions. To deploy the generated code outside Simulink, replace the files in the stub folder with files generated by an RTE
generator. Do not edit any file in the stub folder. You can use the generated C code and
ARXML files for testing in Simulink or integration into an AUTOSAR run-time environment.
To export the AUTOSAR elements to one or more modelName*.arxml files,
use the Exported XML File Packaging option in the AUTOSAR
dictionary. When you create an AUTOSAR Classic component by importing ARXML files, the file
structure is preserved when exported, irrespective of the Exported XML
file packaging XML option. For more information, see Round-Trip Preservation of AUTOSAR XML File Structure and Element Information.
XML Files
| Exported XML File Packaging Option | File | Description |
|---|---|---|
Single file |
|
|
Modular |
|
In addition to software components, the component file contains descriptions of packageable elements that the exporter does not move to data type, implementation, interface, or timing files based on the AUTOSAR element category. |
|
| |
|
| |
|
The interfaces include type-specific elements, such as S-R data elements, C-S operations, port-based parameters, or triggers. | |
modelName_timing.arxml | Simulink generates this file only for a multi-runnable model. The file defines the execution order constraints in the model. For more information, see Configure AUTOSAR Runnable Execution Order. |
Stub Files
|
|
For an example of code generation for the AUTOSAR Classic Software Component, see Generate AUTOSAR C Code and XML Descriptions.
See Also
arxml.importer | autosar.api.getAUTOSARProperties