With the rapid development of the automotive industry,especially in the field of automotive electronics,contemporary automotive electronic and electrical architecture has become very complex.The rapid increase in the number of electronic control units in automobiles has led to a series of problems such as increased difficulty in automotive software development,difficulty in code reuse,and low portability.To address the complex design of automotive electronic systems,advanced automotive manufacturers,accessories suppliers and other electronic equipment,semiconductor and software companies jointly established AUTOSAR(AUTomotive Open System ARchitetecture).Based on the in-depth analysis of the AUTOSAR software architecture and its development process,this paper completes the research and development of the AUTOSAR MCAL(Micro-Controller Abstraction Layer)configuration tool software.MCAL is the bottom layer of the AUTOSAR ECU(Electronic Control Unit)software architecture,and it is the underlying driver that can directly access the microcontroller hardware.In the AUTOSAR system development process,MCAL configuration is an important step in ECU software integration.The purpose of developing the MCAL configuration tool in this topic is to assist ECU developers quickly complete the MCAL configuration work.This paper analyzes the requirements of the MCAL configuration tool according to the requirements of MCAL configuration,and adopts a modular design method on this basis.The focus of its research is on the design and implementation of the five functional modules of MCAL configuration tool,including the UI module to realize the interface layout and dynamically generate the configuration interface,the project management module to complete the creation,modification and deletion of configuration project,and the configuration management module to verify,save and export the configuration value,the code generation module that generates the configuration code according to the configuration value and the configuration file operation module that is responsible for the mutual conversion between ARXML files and Java objects.In addition,this paper also verifies the application of the MCAL configuration tool through an example of controlling the blinking of LED lights.The AUTOSAR MCAL configuration tool developed in this topic reduces the development difficulty of the underlying driver in the AUTOSAR architecture and improves the development efficiency of ECUs.It is of great significance for the localization of the AUTOSAR development tool chain and promoting the domestic automobile manufacturers and parts suppliers at all levels to realize the AUTOSAR architecture. |