Abstract:Taking the power window system and wiper control of an automobile as examples, a new-typed development method of the automotive electronic controller software was proposed, which incorporates the simulation and code generation techniques. The method employs the Simulink/Stateflow to establish controller algorithm models for offline simulation and fast verification, and generates an executable automotive code by RTW which can be directly embedded in the electric controller unit. The method was tested and verified to be feasible and accurate, by comparing with the simulation results of Simulink. It is proved that the development mode can greatly shorten the development cycle of the control system and has certain practical value for the development of automotive electronic control system. Moreover, the method allows validation testing being conducted in the early stage of development cycle. It greatly increases the correctness of the design and development.