摘要
针对汽车控制器中驱动代码生成存在对硬件依赖性强、代码格式不规范、可重用性不强等问题,提出利用仿真建模工具Simulink/RTW、结合AutoSAR规范、基于代码生成技术的汽车控制器驱动工具箱的设计方法。通过对驱动配置模块的不同芯片配置及对相关参数的设置满足多处理器需求,依据AutoSAR规范对驱动函数接口的封装实现代码的可重用性。最后将设计的驱动工具箱结合代码生成模板应用于BCM车窗控制系统,实验证明了该方法的高效性和可行性。
According to the problems of code generation in the driver of auto controller, such as depending on hardware strongly,code format not standard, reusability not strong and so on, this paper puts forward a kind of designing method of the driver toolbox of auto controller using the simulation modeling tools Simulink/RTW, combining with AutoSAR norms,based on code genera- tion. In designing process, it meets many processors through different chips configuration and the related parameters settings of the drive configuration module, and realizes the code reusability through the encapsulation of driver function interface according to Au- toSAR norms. Finally, the designed driver toolbox is used in BCM windows control system, combining with the code generation tem- plate, and the experimental results proves the high efficiency and feasibility of this method.
出处
《电子技术应用》
北大核心
2012年第7期33-36,共4页
Application of Electronic Technique
基金
重庆市科技攻关计划项目(CSTC
2009AB2244)
重庆高校优秀成果转化资助项目(KJZH11207)
重庆高校创新团队建设计划(201014)