Integrate Generated Code for Multi-Instance Software Components
For models containing multi-instance software components, you can configure the default packaging of internal data in the generated code as C-typed per-instance memory (PIM) or AUTOSAR-typed PIM.
If you build an AUTOSAR software component model that is configured for multiple instantiation that uses C-typed PIM:
The generated ARXML describes internal data such as
DWorkas C-typed PIM.
The generated model header file
contains type definitions for the PIMs.
If you use C-typed PIM, when you integrate the generated ARXML files and code into the AUTOSAR run-time environment (RTE), the RTE generator does not automatically generate the PIM type definitions. To make the type definitions available for component instances, the RTE must include the generated model header file.
The method for including the model header file varies according to the integration tooling. For example:
In Vector tooling, file
Rte.hincludes an optional user types file,
In ETAS® tooling,
Rte_UserCfg.his an optional user configuration file. Update
If you use AUTOSAR-typed PIM, when you integrate the generated ARXML files and code into the AUTOSAR RTE, the RTE generator automatically generates the PIM type definitions. No additional model header files need to be included.