代码生成
创建和开发 AUTOSAR 软件组件的 Simulink® 表示后,可以生成代码,用于进行 SIL/PIL 测试或集成到 AUTOSAR 运行时环境中。AUTOSAR 代码生成需要 Simulink Coder™ 和 Embedded Coder®。
主题
- 生成 AUTOSAR C 代码和 XML 描述
从 AUTOSAR 组件模型生成符合 AUTOSAR 标准的 C 代码并导出 AUTOSAR XML (ARXML) 描述。
- Configure AUTOSAR Code Generation
Configure code generation for AUTOSAR model.
- 模型配置参数:代码生成 AUTOSAR (Embedded Coder)
用于控制 AUTOSAR 代码生成的参数。
- Code Generation with AUTOSAR Code Replacement Library
Use AUTOSAR 4.x code replacement library to generate C code that more closely aligns with the AUTOSAR standard.
- Automatic AUTOSAR Data Type Generation
Automatically generate AUTOSAR platform data types in AUTOSAR-compliant C code.
- Verify AUTOSAR Code with SIL and PIL
Verify AUTOSAR software component code with software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulations.
- Integrate Generated Code for Multi-Instance Software Components
Configure RTE header files for multi-instance component internal data.
- Import and Simulate AUTOSAR Code from Previous Releases
Use cross-release workflow to import AUTOSAR code from previous releases.
- Limitations and Tips
Limitations that apply to AUTOSAR code generation.