【Isolar A/B】从零配置Autosar架构(三)ECU配置

本文介绍了ECU配置步骤,包括创建ECUExtract、BSW配置(如ECUM模块、RTACodeGenerator)和RTE配置(如映射、OsTask等)。过程中遇到的问题,如数据映射错误和生成错误,以及解决方法被提及。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

3.ECU configuration(ECU配置)

3.1创建一个ECU Extract (根据一和二中的配置生成)

提取后的文件生成

3.2BSW配置
3.2.1Generate ECU Configuration

gen文件夹为自行新建,专门用来存储ECU Configuration。

勾选为每个模块生成单独的文件。

生成文件如图所示

生成模块如图所示

3.2.2ECUM模块配置
3.2.2.1新建ECUM模块

3.2.2.2配置

3.2.3RTA Code Generator配置

3.2.4生成BSW代码

3.3RTE配置
3.3.1ComM、EcuM映射到ECU实例

3.3.2EcuValueCollection

3.3.3新建OSTask

新建之后软件有显示bug,需要退出界面重新进入

3.3.4实体映射到OsTask

一次拖多个实体的技巧,要不然狠狠地报错

3.3.5生成RTE代码

然后报错

1.Description    Resource    Path    Location    Type
Application Type '/ApplicationDataTypes/Kang_DataType' is needed by SWC '/SwComponentTypes/SWC_Rx' but is not mapped to an ImplementationDataType by any referenced DataTypeMappingSet. Generation step will fail, but for now assuming unsigned 8-bit integer type. - Line: unknown    Test        Unknown    B.WorX Logging Framework Marker。

2.Description    Resource    Path    Location    Type
Application Type '/ApplicationDataTypes/Kang_DataType' is needed by SWC '/SwComponentTypes/SWC_Tx' but is not mapped to an ImplementationDataType by any referenced DataTypeMappingSet. Generation step will fail, but for now assuming unsigned 8-bit integer type. - Line: unknown    Test        Unknown    B.WorX Logging Framework Marker。

3.Description    Resource    Path    Location    Type
Internal Error 903962. Behavior from this point is undefined. Please contact support. - Line: unknown    Test        Unknown    B.WorX Logging Framework Marker。

4.Description    Resource    Path    Location    Type
Internal Error 903963. Behavior from this point is undefined. Please contact support. - Line: unknown    Test        Unknown    B.WorX Logging Framework Marker。

5.Description    Resource    Path    Location    Type
Target ARObject: <ApplicationECU_SG_TestResult_Tx> ISignal or ISignalGroup /DBC_SysDesc_Can_Network/Pkg_ISignal/ApplicationECU_SG_TestResult_Tx is mapped to a SystemSignal or SystemSignalGroup that is mapped, directly or indirectly, to Sender-Receiver DataItem /PortInterfaces/Kang_Interface/Kang0 in port /SwComponentTypes/SWC_Tx/PPort_Tx0 on Application Software Component Instance /ApplicationECU_FlatView/SwComponentTypes/ApplicationECU_FlatView/CPT_SWC_Tx but that also has intra-ECU connections such that when all connections and signal mappings are considered there is fan out from a provider and fan in to a requirer, producing an M:N connection configuration. - Line: 298. [Infos] <ApplicationECU_SG_TestResult_Tx> : </DBC_SysDesc_Can_Network/Pkg_ISignal/ApplicationECU_SG_TestResult_Tx>    DBC_SysDesc.arxml    /Test    Unknown    B.WorX Logging Framework Marker

 问题1和2表示我的数据映射出了问题

双击这里选择数据类型即可

问题降为一个

Description    Resource    Path    Location    Type
Target ARObject: <APPLICATION-PRIMITIVE-DATA-TYPE> The multiplicity check failed for property 'IMPLEMENTATION-DATA-TYPE-REF' within a 'APPLICATION-PRIMITIVE-DATA-TYPE' of Category 'VALUE'. RTEGen counted 1 occurrence(s) but the property's multiplicity is '0'. - Line: 7. [Infos] <APPLICATION-PRIMITIVE-DATA-TYPE> : </ApplicationDataTypes>    Kang_DataType.arxml    /Test/asw_config    Unknown    B.WorX Logging Framework Marker。
 

问题卡在RTE生成了,未完待续…… 

评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值