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生成了,未完待续……