Font Size: a A A

Development Of Automatic Code Generation Tool For Automatic Electronics

Posted on:2018-11-24Degree:MasterType:Thesis
Country:ChinaCandidate:B ZhangFull Text:PDF
GTID:2322330542469658Subject:Vehicle engineering
Abstract/Summary:PDF Full Text Request
The key of automotive electronic technology is control algorithm software.With the rapid development of automotive electronic,software design becomes more complex,and the quality of software requirements are also getting higher,at the same time,the amount of software code increases dramatically.Traditional software development methods of manual programming have been difficult to deal with these challenges,In contrast,the method of model based automatic code generation has many advantages and becomes the development trend of software engineering.The model has the characteristics of easy to maintain,high reusability and portability,and we can verify the function and eliminate the loopholes in the model simulation stage,so as to reduce the workload of the later debugging software.To solve these problems,this paper researches and develops the model based automatic code generation tool.First of all,this paper studies the principle of Matlab/Simulink RTW ECoder generated code,and customizes control file of RTW code generation process for Freescale S12/S12X MCU platform.Secondly,In order to make the software generate from model has good architecture,this paper studies the AUTOSAR standard,and edits middleware according to the standard of AUTOSAR.In order to provide convenience for the user to establish communication between application software and middleware,visit and configuration of hardware resources,this paper writes Simulink module library,including seven submodule libraries:RTE signal transmit and receive,special external device,task management,data dictionary,network management,storage management,measurement and calibration using Simulink S-Function and TLC(Target Language Compiler).Finally,after studying the protocol of CCP,this paper writes the CCP protocol stack of ECU to achieve the measurement and calibration for the generated ECU software.This paper builds a simulink EPS control algorithm model,and generate EPS software via automatic code generation tool,verifies the EPS software in hardware-in-loop platform.The result denotes that,the automatic code generation tool can generate the ECU control software fast and easily,can also measure and calibrate the ECU control software conveniently,and improve the efficiency and quality of software development of automotive electronics.
Keywords/Search Tags:Automatic Code Generation Tool, Automotive Electronics, RTW ECoder, Model-Based, AUTOSAR
PDF Full Text Request
Related items