This content is not included in
your SAE MOBILUS subscription, or you are not logged in.
Implementation of Auto-Code Generation in Legacy Code for Body Control Software Applications
Technical Paper
2008-01-0749
ISSN: 0148-7191, e-ISSN: 2688-3627
Annotation ability available
Sector:
Language:
English
Abstract
The application of Model-Based Design (MBD) methodology to software development for automotive Electronics Control Units (ECUs) cannot be fully realized without auto-code generation. Auto-code generation does not lend itself directly to projects where carry-over designs and legacy code have to be utilized due to either budgetary limitations or customer requirements. In fact, the majority of existing ECUs still contain only manually-written embedded software and many projects only involve requirement changes and/or added functions. In this case, it is not practical to discontinue the usage of legacy code and create a full model for the purpose of auto-code generation. In this paper, we describe a methodology in which auto-code generation approach is leveraged by creating MATLAB® models just for new features and/or change requests. After the interface between auto-code and legacy code is carefully handled, the mixed code functionality is tested and validated by “wrapping” the auto-code and its surrounding interfaced legacy code in an S-function which can be simulated in a virtual test harness model. In this work, the MathWorks’ toolset including Simulink®, Real-Time Workshop Embedded Coder®, and Legacy Code Tool (LCT) was used. The methodology introduced in this paper has been successfully applied to production projects.
Recommended Content
Journal Article | Smart Power Semiconductors - Repetitive Short Circuit Operation |
Technical Paper | Efficient CAN Protocol Development Process |
Technical Paper | Efficient CAN Protocol Development Process |
Authors
Citation
Yang, J., Krishnan, S., Bauman, J., and Beydoun, A., "Implementation of Auto-Code Generation in Legacy Code for Body Control Software Applications," SAE Technical Paper 2008-01-0749, 2008, https://doi.org/10.4271/2008-01-0749.Also In
References
- Hellestrand Graham “Model-based Development with Virtual Prototypes” VaST System Technology http://www.automotivedesignline.com/howto/showArticle.jhtml?articleID=57701843 9 01 2007
- Crouch Greg “Why is Autocode Generation Slow to Adoption?” National Instruments, DSP DesignLine http://www.dspdesignline.com/howto/tools_ip/199905899 9 18 2007
- Yang J. Bauman J. Beydoun A. “An Effective Model-Based Development Process Using Simulink/Stateflow for Automotive Body Control Electronics” Doc. #: 2006-01-3501”, SAE 2006 Commercial Vehicle Engineering Congress & Exhibition October 2006 Rosemont, IL, USA
- “Model-Based Testing and Validation of Control Software with Reactis” http://www.reactive-systems.com/papers/bcsf.pdf 9 1 2007
- “Safety Test Builder - Product Overview” 9 1 2007
- Hodge Grantley Ye Jian Stuart Walt “Multi-Target Modelling for Embedded Software Development for Automotive Applications” 2004 SAE World Congress Detroit, Michigan March 8-11 2004
- “Integrate Legacy Code for Simulation and Embedded Code Generation with the Legacy Code Tool” http://www.mathworks.com/company/newsletters/digest/2005/jan/legacy.html 9 1 2007