背景:经常遇到现有的项目需要使用其它项目或者平台项目的某些Component,那我们是否不需要新建几个Component,而是直接将之前项目的Component直接导入,缩短开发时间呢。
答案是可以的,AUTOSAR基于模块化的形式,使得各个Component相对比较独立,可以按模块的形式决定是否加入到对应的项目中去。下面将演示一下如何通过Davinci工具快速导入某个现有的模块。
1.XML and DCF Export
2.Select a forlder
1.Import the XML file
2.Applocation Component Types
3.Drag or Create the Component at ECU composition
4.Do the Connect or Port access with other Component
(eg:EcumExt)
5.Open DaVinci Configure
Do the Task Mapping(MainFunction Task which choose in Developer)
Attention:
Import and Export XML or DCF file, only do the Component Import and Export. Another operation like port Interface, port access and SWC connect should do again.