没有合适的资源?快使用搜索试试~ 我知道了~
这份应用说明文档提供了在 RTA-CAR 9.1.0 VRTA Starter Kit 上配置 XCP(测量和校准协议)的详细步骤。XCP 配置涉及对 DBC 和 DBF 文件的更新,ECU 配置的更新,XCP BSW 模块的配置,BswM 动作列表的初始化,SWC 的创建,Runnable 到 OS 任务的映射,MCAL 的更新,项目的构建以及使用 INCA 进行测试。
首先,DBC 文件需要更新以添加 XCP 接收和传输的两个帧。接着,使用 ConfGen 工具更新 ECU 配置,以包含 XCP 所需的通信堆栈。由于 ConfGen 不支持创建 XCP 模块,因此需要手动配置 XCP BSW 模块,并设置三个容器:XcpGeneral、XcpConfig 和 XcpA2LFile。BswM 动作列表也需要配置,以初始化 XCP 模块。
接下来,创建或修改 SWC 以包含 XCP BSW 模块配置中的每个事件通道的可运行实体。这些可运行实体需要映射到 OS 任务。MCAL 也需要更新以反映 XCP 帧的新邮箱。
构建项目后,使用 INCA 进行测试,需要修改 A2L 文件...

RTA Knowledge Base
RTA Knowledge Base / Calibration
How to configure XCP
Table of Content
1 Table of Content
2 Introduction
2.1 Scope
2.2 Definitions and Abbreviations
2.3 Toolchain
3 Prerequisites
4 Workflow Summary
4.1 Step 1. Update DBC and DBF files
4.2 Step 2. Update the ECU configuration
4.3 Step 3. Configure the XCP BSW modules
4.4 Step 4. Configure the BswM Action List
4.5 Step 5. Create a SWC
4.6 Step 6. Map runnables to OsTask
4.7 Step 7. Update the MCAL
4.8 Step 8. Build the project
4.9 Step 9. Test with INCA
4.9.1 Step 9.1. Modify the A2L file
4.9.2 Step 9.2. Create a virtual OCD file
4.9.3 Step 9.3. Experiment
Introduction
Scope
This application note describes how to configure XCP on RTA-CAR 9.1.0 VRTA Starter Kit.
The document contains a step by step explanation of the workflow to follow to obtain a working project and how to test it with INCA.
Definitions and Abbreviations
BSW: AUTOSAR Basic Software, Hardware independent service layer
RTE: AUTOSAR Run-Time Environment
OS: AUTOSAR Operating System
SWC: Software Component
XCP: XCP module – implements Measurements and Calibration protocol
COM: AUTOSAR Communication module – provides signal oriented data interface for the RTE
CAN: Control Area Network, AUTOSAR CAN Driver - performs the hardware access to the CAN peripheral and offers a hardware independent API to the upper layer
CanIf: AUTOSAR CAN Interface - represents the interface to the services of the CAN Driver for the upper communication layers
MCAL: Microcontroller Abstraction Layer – the lowest software layer of the Basic Software within the AUTOSAR SW architecture. The MCAL contains internal drivers (BSW with direct
access to the microcontroller and its internal peripherals) and serves to make higher layers independent or the microcontroller.
Toolchain
It is assumed you are using the RTA-CAR 9.1.0 toolchain:
RTA-CAR 9.1.0 toolchain
ISOLAR-AB v 9.1.0
RTA-RTE v 7.4.1
RTA-BSW v 6.1.0
RTA-OS v 6.1.3
For the testing, INCA toolchain version 7.2.17 was used.
Prerequisites
In order to successfully follow this guide, you must have the RTA-CAR toolchain, BUSMASTER and INCA installed, and you must be familiar with the AUTOSAR specifications,
terminology and methodology.
This application note will add XCP configuration on the RTA-CAR 9.1.0 VRTA Starter Kit R1.
Workflow Summary
Here is a summary of the steps that you will be working through in this example.
Step 1. Update the existing DBC and DBF file present in the RTA-CAR 9.1.0 VRTA Starter Kit adding the XCP frames, one for reception of Xcp frames from master and the other for
transmission;
2024/8/15 09:29
How to configure XCP - RTA Knowledge Base - RTA Hotline Confluence
https://rtahotline.etas.com/confluence/display/RH/How+to+configure+XCP
1/23

Step 2. Update the ECU configuration;
Step 3. Configure the XCP BSW module because the ConfGen is able to configure only Com Stack with the frames needed for XCP but it is not able to configure the XCP module;
Step 4. Initialize the XCP module with the configuration of the BswM Action List;
Step 5. Create or modify an existing SWC with a runnable for each event channel created in the XCP BSW module configuration;
Step 6. Map the runnables to OsTask;
Step 7. Update the MCAL;
Step 8. Build the project;
Step 9. Test with INCA.
Step 1. Update DBC and DBF files
The XCP is based on the use of CAN BUS communication, so the DBC file will be updated adding two frames, one for reception of Xcp frames from master and the other for
transmission, as shown here:
In this way we will be able to use the RTA-BSW “ConfGen” tool to update the Can and CanIf BSW modules.
After this step, import the DBC into ISOLAR and choose the one already present in the project as Network name to avoid creating a new network. This will update the existing CAN
network, make sure the existing Controller is updated as well, then press Next.
Now select the ApplicationEcu as shown in the image and select also merge by Auto Update to update the network, then press Next.
2024/8/15 09:29
How to configure XCP - RTA Knowledge Base - RTA Hotline Confluence
https://rtahotline.etas.com/confluence/display/RH/How+to+configure+XCP
2/23

The messages should be recognized by the DBC importer as “XCP messages” as shown here:
Press Finish. Now the two XCP frame and their two PDU are integrated in the CAN network. This can be seen on the AR Explorer window.
2024/8/15 09:29
How to configure XCP - RTA Knowledge Base - RTA Hotline Confluence
https://rtahotline.etas.com/confluence/display/RH/How+to+configure+XCP
3/23

Step 2. Update the ECU configuration
To update the ECU configuration run the ConfGen
In this step the ConfGen will take as input the System configuration that is describe in the dbc and will generate the ECU configuration needed.
The code generated by the ConfGen with the ECU configuration will be created in the Path parameter in the above image, in our case
“ApplicationECU_Project_Can_EcucValues.arxml”. This file has to be called by the mcalgen.exe at the end of the configuration when the MCAL needs to be updated.
Then, press Finish.
2024/8/15 09:29
How to configure XCP - RTA Knowledge Base - RTA Hotline Confluence
https://rtahotline.etas.com/confluence/display/RH/How+to+configure+XCP
4/23

After this step, the Can and the CanIf modules are configured for the Xcp as shown in the images below:
As visible in the above image, CanHwFilter of the Can_Network_CANNODE_0_Tx_Std_MailBox_5 has empty parameters after ConfGen, so manually put them to 0 has shown in the
below image:
2024/8/15 09:29
How to configure XCP - RTA Knowledge Base - RTA Hotline Confluence
https://rtahotline.etas.com/confluence/display/RH/How+to+configure+XCP
5/23
剩余22页未读,继续阅读
资源推荐
资源评论
193 浏览量
145 浏览量
172 浏览量
2024-01-14 上传
2019-03-07 上传

116 浏览量
161 浏览量
2018-08-05 上传
109 浏览量
106 浏览量
136 浏览量
133 浏览量
2020-05-28 上传
2025-04-19 上传
168 浏览量
2024-07-30 上传
2024-06-10 上传
2018-09-30 上传
126 浏览量
104 浏览量
基于Autosar架构的ASPIC流程BMS电池管理系统应用层模型开发,满足功能安全ASIL C等级要求,适用于量产车型,量产车型BMS电池管理系统应用层模型:基于Autosar架构与ASPIC流程开
2025-03-06 上传
2024-07-12 上传
2024-06-10 上传
2025-03-06 上传
196 浏览量
173 浏览量
3927 浏览量
资源评论



美好生活丶
- 粉丝: 2159
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 综合布线技术与工程教材全套课件教学教程整本书电子教案全书教案课件.ppt
- 六套项目管理模拟题并附有讲解的项目管理复习资料-.doc
- 网络营销、推广快速入门教程以及网络营销、推广案例.pptx
- 数据通信与计算机网络7.ppt
- (源码)基于Azure IoT Plug and Play的EnOcean多传感器连接系统.zip
- 数控编程技术教案公开课一等奖优质课大赛微课获奖课件.pptx
- 上中间件安装部署手册.doc
- ios苹果商店付费热门手机App排行榜.docx
- 软件工程师-九个HTML5和JavaScript实验设计案例.docx
- 使用IBMPowerExecutive来管理服务器能耗.docx
- 第9章-嵌入式Linux软件设计.ppt
- ibm及国内it业实施ipd集成产品开发流程变革内因与成果.doc
- 智能手机硬件和网络销售人员必备二.pptx
- 公司工资管理系统程序设计报告.doc
- (完整版)《基因工程》PPT教学.ppt
- 三峡某银行网络改造总体设计方案项目策划书.doc
安全验证
文档复制为VIP权益,开通VIP直接复制
