Skip to Main Content
In order to get high efficiency of code design and convenience of system maintenance, this paper applies the most advanced method, unified modeling language (UML) and model-driven architecture (MDA), on the development of the embedded system based on the MSC1212. Firstly, using Matlab/stateflow toolbox to model and simulate the complex event driven system in the embedded system introduced in this paper. Then using stateflow coder translated the state chart into high efficiency C code. By making some simple replacement to the blank C function with the low-layer function of the target system based MSC1212, the code rapid generation of the embedded software is finished. It has been proved by experiment that, the automatically code generation introduced in this paper works well in the embedded target system. It has good performance and high code efficiency than those code generated by hand.