Code Generation
After creating and developing a Simulink®representation of an AUTOSAR adaptive software component, generate code for testing or for integration into the AUTOSAR run-time environment. AUTOSAR code generation requiresSimulink Coder™and Embedded Coder®.
From an adaptive model, you can build a Linux executable or library. For Linux testing, you can configure run-time calibration, measurement, and logging.
Functions
coder.asap2.export |
Generate ASAP2 (A2L) file according to ASAM MCD-2 MC standards |
createManifest |
Create manifest file for AUTOSAR adaptive model |
getClassName |
Get class name of model |
setClassName |
Set class name of model |
getClassNamespace |
Get class namespace for a model |
setClassNamespace |
Set class namespace of model |
Topics
- Generate AUTOSAR Adaptive C++ Code and XML Descriptions
Generate AUTOSAR-compliant C++ code and export AUTOSAR XML (ARXML) descriptions from AUTOSAR adaptive component model.
- Configure AUTOSAR Adaptive Code Generation
Configure code generation for AUTOSAR adaptive model.
- Model Configuration Parameters: Code Generation AUTOSAR(Embedded Coder)
Parameters for controlling AUTOSAR code generation.
- Configure AUTOSAR Adaptive Data for Run-Time Calibration and Measurement
Generate XCP Slave function calls and ASAP2 (A2L) file for calibrating AUTOSAR adaptive model data.
- 从AUTOSAR自适应构建库或可执行文件Model
Generate libraries and executables from AUTOSAR adaptive model.
- Build Out of the Box Linux Executable from AUTOSAR Adaptive Model
Generate Linux executable for AUTOSAR adaptive model.
- Configure Run-Time Logging for AUTOSAR Adaptive Executables
Forward AUTOSAR adaptive event logging information to a console, file or network.
- Limitations and Tips
Limitations that apply to AUTOSAR code generation.