AUTOSAR can reduce the overall development cost of the automobile industry and improve the product quality.And it can reduce the coupling degree of software and hardware of automobile embedded system,and can make product adapt to the development status of frequent automobile upgrading.However,only a few MCU suppliers in China are connected to the AUTOSAR at present.After investigation,it was found that the current MCU suppliers had encountered the following difficulties in the process of adding in AUTOSAR.Firstly,the technical specifications of AUTOSAR are obscure and difficult to understand,and it leads to the high learning cost.Secondly,the number of MCAL modules is large which leads to tedious work;The third is the lack of tools which can reduce the difficulty of development.Based on the above demands,the paper studies the design and development of the microcontroller driver layer toolkit,and assists the microcontroller developers to develop AUTOSAR MCAL driver module.The main work of the paper is as follows:(1)The requirement analysis of the microcontroller driver layer toolkit.Firstly,the paper analyzed the current AUTOSAR standardization scheme for microcontroller driver code and the current AUTOSAR toolchain functionality,and identified the problems of the current standardization scheme and the lack of relevant tools to assist in development.Afterwards,the paper improved the current business process,analyzed user requirements,and summarized the functional requirements analysis of the toolkit.There are requirements for MCAL module information display,MCAL driver module development,code generation,and access to the AUTOSAR toolchain.(2)The design and implementation of the microcontroller driver layer toolkit.The paper designed and proposes solutions for each demand point,improved the system business process,designed the system hierarchy architecture,and finally determined the specific functional modules.The toolkit is divided into the following five modules:project information management module,MCAL driver development management module,code generation module,MCAL driver specification management module and basic functional modules.After that,the paper combined Vue,Electron,Spring Boot,JMustache,JXAB XML and static code analysis tool to complete the implementation of various functional modules of the tool.(3)The testing and verification of the microcontroller driver layer toolkit.Designed the testing plan,and carried out the system function testing,the toolkit’s output testing and application verification.During the toolkit’s output testing process,the paper conducted static code analysis testing.The paper also designed an example of A/D digital-to-analog testing function based on STC12c560s2 development board to verify the usability of the tool’s output code.In summary,this toolkit can provide an AUTOSAR based driver assistance development solution for microcontroller developers,achieving functions such as MCAL driver module information display,auxiliary driver code development,code generation,and seamless integration into the lower level tool chain.It also optimizes the AUTOSAR standardization method for microcontroller driver code and fills the current shortage of auxiliary MCAL driver development tools in the AUTOSAR tool chain. |