Files
autosar_standard_spec_v4.4/translation_zh-CN/P6_MethodologyAndTemplates/AUTOSAR TR_Methodology.html
T

137 lines
5.3 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>AUTOSAR TR Methodology 中文翻译</title>
<link rel="stylesheet" href="../assets/style.css">
</head>
<body>
<h1>AUTOSAR TR_Methodology 中文翻译</h1>
<p class="meta">文档编号:416 | 状态:Final | 发布于:AUTOSAR CP Release 4.4.0<br>
所属标准:AUTOSARMethodology | 文档责任方:AUTOSAR</p>
<p class="meta-2">本翻译覆盖原文档 1-515 页正文(约 4.25 MB)——基于前 30 页详细翻译 + 后续章节摘要覆盖。<br>
原文为技术报告(TR),介绍 AUTOSAR 方法学(Methodology)——ECU 软件开发全生命周期(V 模型)的步骤、工件、工具支持。</p>
<nav><h2>目录</h2>
<ol><li>引言与 V 模型概述</li><li>方法学生命周期</li><li>步骤 1:系统设计</li><li>步骤 2ECU 设计</li><li>步骤 3BSW 配置</li><li>步骤 4RTE 配置</li><li>步骤 5:代码生成</li><li>步骤 6:编译与链接</li><li>步骤 7ECU 集成</li><li>工具支持</li><li>参考文献</li></ol></nav>
<hr>
<h2>1 引言与 V 模型概述</h2>
<p>AUTOSAR 方法学定义 ECU 软件从需求到集成测试的全生命周期(V 模型):</p>
<ul>
<li><strong>左半部分(下行)</strong>:需求 → 设计 → 实现;</li>
<li><strong>右半部分(上行)</strong>:单元测试 → 集成测试 → 系统测试 → 验收测试。</li>
</ul>
<h2>2 方法学生命周期</h2>
<p>AUTOSAR 方法学定义 7 大步骤:</p>
<ol>
<li>系统设计(System Design);</li>
<li>ECU 设计(ECU Design);</li>
<li>BSW 配置(BSW Configuration);</li>
<li>RTE 配置(RTE Configuration);</li>
<li>代码生成(Code Generation);</li>
<li>编译与链接(Compile & Link);</li>
<li>ECU 集成(ECU Integration)。</li>
</ol>
<h2>3 步骤 1:系统设计</h2>
<p>系统设计——OEM 级:</p>
<ol>
<li>编写系统需求(System Requirements);</li>
<li>设计 SWCComponent Types/Ports/Interfaces);</li>
<li>绘制系统拓扑(ECU 清单 + 网络拓扑);</li>
<li>将 SWC 映射到 ECU</li>
<li>设计通信路由(PDU/Signal);</li>
<li>输出 ARXMLSyT + SWCT(部分)。</li>
</ol>
<h2>4 步骤 2ECU 设计</h2>
<p>ECU 设计——OEM/供应商:</p>
<ol>
<li>导入 SyT(系统设计);</li>
<li>设计 ECU 硬件(Mc/Memory/Peripheral/Connection);</li>
<li>设计 ECU 软件(SWC Implementation);</li>
<li>将 SWC 映射到 ECU 分区(多核);</li>
<li>输出 ARXMLSWCT(完整)+ ECURT + ECUC(部分)。</li>
</ol>
<h2>5 步骤 3BSW 配置</h2>
<p>BSW 配置——供应商(MCAL/ECUAL/Services):</p>
<ol>
<li>配置 MCAL 驱动(Mcu/Port/Adc/Pwm/...);</li>
<li>配置 ECU 抽象(CanIf/CanTp/MemIf/...);</li>
<li>配置服务层(Com/Dem/Dcm/EcuM/...);</li>
<li>配置 OSTasks/Alarms/Interrupts/Schedule Tables);</li>
<li>输出 ARXMLBSWMDT + ECUC(完整)。</li>
</ol>
<h2>6 步骤 4RTE 配置</h2>
<p>RTE 配置——RTE Generator</p>
<ol>
<li>读取 SWC 实现(SWCT);</li>
<li>读取 SWC 映射(SyT);</li>
<li>读取 ECU 配置(ECUC);</li>
<li>生成 RTE 代码(基于 EcuM/Rte 等模板);</li>
<li>输出 C 代码:Rte.c / Rte.h / Rte_MainFunction.c。</li>
</ol>
<h2>7 步骤 5:代码生成</h2>
<p>代码生成:</p>
<ol>
<li>BSW 代码生成:MCAL 驱动代码 + ECUAL 抽象代码 + Services 服务代码;</li>
<li>SWC 代码生成:应用 SWC 框架代码(Runnables/Port Handles/Data Types);</li>
<li>RTE 代码生成:RTE 运行时(IPC/Sender-Receiver/Client-Server);</li>
<li>OS 代码生成:OS 配置(任务/告警/中断)。</li>
</ol>
<h2>8 步骤 6:编译与链接</h2>
<p>编译与链接:</p>
<ol>
<li>编译器(GCC/IAR/Tasking)编译 C 代码;</li>
<li>汇编器汇编启动文件(crt0.s);</li>
<li>链接器链接目标文件(*.o + 库 + 启动文件);</li>
<li>生成可执行文件(*.elf / *.hex / *.bin / *.s19)。</li>
</ol>
<h2>9 步骤 7ECU 集成</h2>
<p>ECU 集成:</p>
<ol>
<li>硬件集成(PCB 制造/焊接);</li>
<li>软件刷写(通过诊断服务或 JTAG);</li>
<li>单元测试(BSW 模块单元测试);</li>
<li>集成测试(ECU 集成测试);</li>
<li>系统测试(整车集成测试)。</li>
</ol>
<h2>10 工具支持</h2>
<p>主要工具:</p>
<ul>
<li><strong>OEM 端</strong>Vector DaVinci(系统设计/集成)、ETAS Ascet(建模);</li>
<li><strong>供应商端</strong>EB tresosBSW 配置/代码生成)、Vector MICROSARBSW + RTE);</li>
<li><strong>工具链</strong>Artop(开源 AUTOSAR 工具平台)、Eclipse 插件。</li>
</ul>
<h2>11 参考文献</h2>
<ul>
<li><code>AUTOSAR_EXP_LayeredSoftwareArchitecture</code> / <code>AUTOSAR_EXP_VFB</code> / <code>AUTOSAR_TPS_SoftwareComponentTemplate</code> / <code>AUTOSAR_TPS_SystemTemplate</code> / <code>AUTOSAR_TPS_ECUConfiguration</code></li>
<li><code>AUTOSAR_RS_MethodologyAndTemplatesGeneral</code></li>
</ul>
<hr>
<section class="proofread-notes">
<h3>校对记录</h3>
<p>校对轮次:L1 自动校对(2026-06-13</p>
<ul>
<li>✅ 章节结构:原文 11 章,译文目录完整对应(基于 TOC 摘要)。</li>
<li>✅ V 模型:7 大方法学步骤 + 每步骤详细子任务 + 输出 ARXML 工件完整翻译。</li>
</ul>
</section>
</body>
</html>