Generate ASAP2 File for AUTOSAR Architecture Models
Use Embedded Coder® software for an AUTOSAR architecture model to:
Generate an ASAP2 file
Generate computation methods and record layouts as separate ASAP2 files
Pack the ASAP2 file along with
arxml
files
Generate ASAP2 File
To generate ASAP2 file for an AUTOSAR architecture model
Open an AUTOSAR architecture model.
Click Share > Generate Calibration Files button under Modeling tab of the model.
The Generate Calibration Files tool has the option Include shared elements selected. Clear the option if you do not want the computation methods and record layouts generated as separate ASAP2 files.
Click the Generate button.
This generates a Component.a2l
file for each component present
in the AUTOSAR architecture model and save it in the respective build folder of the
component.
Separate ASAP2 files Component_CompuMethods.a2l
and
Component_RecordLayouts.a2l
are generated for computation
methods and record layouts respectively for each component present in the AUTOSAR
architecture model.
The ASAP2 files generated for computation methods
(Component_CompuMethods.a2l
) and record layouts
(Component_RecordLayouts.a2l
) are included in the component
ASAP2 file (Component.a2l
).
Generate and Package ASAP2 File
To generate and package ASAP2 file for an AUTOSAR architecture model
Open an AUTOSAR architecture model.
On the Modeling tab, in the Share section, click Share > Generate Code and ARXML.
In the Export Composition dialog, select Generate ASAP2 (a2l) file option.
Click OK button.
This generates code, arxml
, and ASAP2 files. The
computation methods file and record layouts file contains the merged data of all the
components present in the architecture model. The generated ASAP2 file, computation
methods file, and record layouts file are packaged into a folder named
asap2
.
See Also
export
| coder.asap2.export
(Embedded Coder) | coder.asap2.merge
(Embedded Coder)
Topics
- Generate ASAP2 and CDF Calibration Files (Embedded Coder)