Integrate Generated Code for Multi-Instance Software Components
When you build an AUTOSAR software component model that is configured for multiple instantiation:
The generated ARXML describes internal data such as
BlockIO
andDWork
as C-typed per-instance memory (PIM).The generated model header file
contains type definitions for the PIMs.model
.h
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.h
includes an optional user types file,Rte_UserTypes.h
. UpdateRte_UserTypes.h
to include
.model
.hIn ETAS® tooling,
Rte_UserCfg.h
is an optional user configuration file. UpdateRte_UserCfg.h
to include
.model
.h