RTE Generator
RTE Generator
Georg Macher∗k ,Rene Obendraufk , Eric Armengaudk , Eugen Brenner∗ and Christian Kreiner∗
∗ Institute for Technical Informatics, Graz University of Technology, AUSTRIA
Email: {georg.macher, brenner, christian.kreiner}@tugraz.at
k AVL
List GmbH, Graz, AUSTRIA
Email: {georg.macher, rene.obendrauf, eric.armengaud}@avl.com
Abstract—Automotive embedded systems have become very for supporting the description of the system under develop-
complex, are strongly integrated and the safety-criticality and ment in a more structured manner. Model-based development
real-time constraints of these systems are raising new challenges. approaches enable different views for different stakeholders,
Distributed system development, short time-to-market intervals, different levels of abstraction, and provide a central storage of
and automotive safety standards (such as ISO 26262 [8]) re- information. This improves the consistency, correctness, and
quire efficient and consistent product development along the
entire development lifecycle. The challenge, however, is to ensure
completeness of the system specification. Nevertheless, such
consistency of the concept constraints and configurations along seamless integrations of model-based development are still the
the entire product life cycle. So far, existing solutions are still exception rather than the rule and frequently MBD approaches
frequently insufficient when transforming system models with a fall short due to the lack of integration of conceptual and
higher level of abstraction to more concrete engineering models tooling levels [3].
(such as software engineering models).
The aim of this paper is to present a tool approach which
The aim of this work is to present a model-driven system- enables a seamless description of safety-critical software, from
engineering framework addon, which enables the configurations requirements at the system level down to software component
of basic software components and the generation of a runtime implementation in a bidirectional way. With the presented
environment layer (RTE; interface between application and
basic software) for embedded automotive system, consistent with
tool available hardware- software interfacing (HSI) information
preexisting constraints and system descriptions. With this aim in can be used to generate basic software (BSW) component
mind a tool bridge to seamlessly transfer artifacts from system configurations, as well as, automatic generation of the run-
development level to software development level is described. This time environment layer (RTE; interface between application
enables the seamless description of automotive software and soft- software (ASW) and basic software).
ware module configurations, from system level requirements to
software implementation and therefore ensures both consistency The tool consists of a basic software configuration
and correctness for the configuration. generator and a software interface generator producing .c
and .h files for linking ASW and BSW. To ensure more
Keywords—automotive, embedded systems, Model-based devel-
versatility of the tool the required HSI information can either
opment, basic software configuration, traceability, model-based
software engineering. be imported from a HSI spreadsheet template or the system
model representation. The goal is, on one hand, to support
a consistent and traceable refinement from the early concept
I. I NTRODUCTION phase to software implementation, and on the other hand,
to combine the versatility and intuitiveness of spreadsheet
Embedded systems are already integrated into our everyday tools (such as Excel) and the properties of MDB tools
lives and play a central role in all domains including automo- (e.g., different views, levels of abstraction, central source of
tive, aerospace, healthcare, manufacturing industry, energy, or information, and information reuse) bidirectionally to support
consumer electronics. Current premium cars implement more semi-automatic generation of BSW configuration and the
than 90 electronic control units (ECU) per car with close to 1 SW-SW interface layer (in AUTOSAR notation known as
Gigabyte software code [4], these are responsible for 25% of runtime environment - RTE).
vehicle costs and bring an added value between 40% to 75%
[18]. This trend of making use of modern embedded systems,
which implement increasingly complex software functions The document is organized as follows:
instead of traditional mechanical systems is unbroken in the Section II presents an overview of related works as well as the
automotive domain. Similarly, the need is growing for more fundamental model-based development tool chain on which
sophisticated software tools, which support these system and the approach is based. In Section III a description of the
software development processes in a holistic manner. As a con- proposed tool and a detailed depiction of the contribution parts
sequence, the handling of upcoming issues with modern real- is provided. An application and evaluation of the approach is
time systems, also in relation to ISO 26262 [8], model-based presented in Section IV. Finally, this work is concluded in
development (MBD) would appear to be the best approach Section V with an overview of the presented approach.
HSI
SPREADSHEET INFORMATION IMPORTER
System Architecture
SW Architecture HW Architecture
Interface. AVLIL_ AVLIL_ AVLIL_
HW AND SW MODELING FRAMEWORK Adc.h
c Adc.c Port.c PWM.c
Fig. 2. Portrayal of the Approach for Generation of BSW Configuration and SW Interfaceing Files for the SW Development Phase
• Basic software configuration generator: following sections describe those parts of the approach that
Generates BSW configurations according to the spec- make key contributions in more details.
ifications within the HSI definition, see Figure 2 –
BSW Configurator. A. AUTOSAR aligned UML modeling framework
• Spreadsheet information importer: The first part of the approach is a specific UML model-
Enables the import of HSI definition information done ing framework enabling software architecture design in AU-
in spreadsheet format, see Figure 2 – Spreadsheet TOSAR like representation within a state-of-the-art system
Information Importer. development tool (in this case Enterprise Architect). A specific
UML profile to limit the UML possibilities to the needs of
This proposed approach closes the gap between system-
software architecture development of safety-critical systems
level development of abstract UML-like representations and
and enable software architecture design in AUTOSAR like
software-level development, also mentioned by Giese et al. [5],
representation within the system development tool (Enterprise
Holtmann et al. [6], and Sandmann and Seibt [17] by support-
Architect). In addition to the AUTOSAR VFB abstraction layer
ing consistent information transfer between system engineering
[2], the profile enables an explicit definition of components,
tools and software engineering tools. Furthermore the approach
component interfaces, and connections between interfaces.
minimizes redundant manual information exchange between
This provides the possibility to define software architecture
tools and contributes to simplifying seamless safety argumen-
and ensures proper definition of the communication between
tation according to ISO 26262 for the developed system. The
the architecture artifacts, including interface specifications
benefits of this development approach are highly noticeable in
(e.g. upper limits, initial values, formulas). Hence the SW
terms of re-engineering cycles, tool changes, and reworking
architecture representation within EA can be linked to system
of development artifacts with alternating dependencies, as
development artifacts and traces to requirements can be easily
mentioned by Broy et al. [3].
established. This brings further benefits in terms of constraints
The contribution proposed in this work is part of the frame- checking, traceability of development decisions (e.g. for safety
work presented in [13] aiming towards software development case generation), reuse and ensures the versatility to also
in the automotive context. The implementation of the approach enable AUTOSAR aligned development as proposed in [12].
is based on versatile C# class libraries (dll) and API command Figure 3 shows an example of software architecture artifacts
implementations to ensure tool and tool version in-dependence and interface information represented in Enterprise Architect.
of the general-purpose UML modeling tool (such as Enterprise As can be seen in the depiction, all artifacts required to model
Architect or Artisan Studio) and other involved tools (such as the SW architecture are represented and inherit the required
spreadsheet tool and software development framework). The information as tagged values.
APPLICATION SW
LAYER
APPLICATION APPLICATION APPLICATION
A.C B.C C.C
SW / SW INTERFACE LAYER
INTERFACE.C
BASIC SOFTWARE
Fig. 4. Screenshot of the BSW and HW Pin Representation within the System
LAYER
Development Tool
BSWDRIVER BSWDRIVER BSWDRIVER
A.C A.C A.C
V. C ONCLUSION
An important challenge for the development of embedded
Fig. 6. Example of a project-independent spreadsheet template structure for automotive systems is to ensure consistency of the design
HSI definition decisions, SW implementations, and driver configurations,
especially in the context of safety-related development. This
TABLE I. OVERVIEW OF THE E VALUATION U SE -C ASE SW work presents an approach which seamlessly describes safety-
A RCHITECTURE
critical software, from requirements at the system level down
to software component implementation in a traceable manner.
Object type Element- Configurable The available hardware- software interfacing (HSI) information
count Attributes can thus be used to generate basic software (BSW) component
per Element configurations, as well as automatic software interface layer
ASW Modules 10 3
generation (interface between application software and basic
BSW Modules 7 3 software). With this aim in mind a framework consisting
ASW Module Inputs 54 10 of a basic software configuration generator and a software
ASW Module Outputs 32 10 interface generator producing .c and .h files for linking ASW
ASW/ASW Interfaces 48 - and BSW has been presented, which can also be used in
ASW/BSW Interfaces 19 - combination with a spreadsheet based HSI definition. The
HW/SW Interfaces 19 13 main benefits of this enhancement are: improved consistency
and traceability from the initial design at the system level
down to the single CPU driver configuration, together with a
We used an automotive battery management system (BMS) reduction of cumbersome and error-prone manual work along
as the use-case for the evaluation of the approach. This use- the system development path. Further improvements of the
case is an illustrative material, reduced for internal training approach include the progress in terms of reproducibility and
purposes and is not intended to be either exhaustive in scope traceability of configurations for software development (such
or to represent leading-edge technology. as driver configurations and SW-SW interfaces).
The definition of the software architecture is usually done The application of the presented approach has been demon-
by a software system architect within the software development strated utilizing an automotive BMS use-case, which is in-
tool (Matlab/Simulink). With our approach this work package tended to be used for training purposes for students and
is included in the system development tool (as shown in engineers and does not represent either an exhaustive or a
Figure 3). This does not hamper the work of the software commercial sensitive project. While the authors do not claim
architect but enables the possibility to also link existing HSI completeness of the analysis (due to confidentiality issues), the
mapping information to the SW architecture (as shown in benefits of the approach are already evident.
Figure 4).
ACKNOWLEDGMENTS
The use-case consists of 10 ASW modules and 7 BSW
modules with 19 interface definitions between ASW and BSW This work is partially supported by the EM C 2 and the
and makes use of the 3 fundamental low-level HW functions M EM CON S projects.
(digital input/output, analog input/outputs, and PWM outputs).
A more complete overview of use-case is given in Table I. The research leading to these results has received funding
from the ARTEMIS Joint Undertaking under grant agree-
The definition of the 19 HW/SW interfaces with 10 pa- ment nr 621429 (project EM C 2 ) and financial support of
rameters for each SW signal and 13 parameters for each HW the ”COMET K2 - Competence Centers for Excellent Tech-
pin sums up to 437 parameter configurations within the HSI nologies Programme” of the Austrian Federal Ministry for
spreadsheet template or in the MDB tool, which can be used Transport, Innovation and Technology (BMVIT), the Austrian
to generate ASW/BSW interfaces and BSW configurations. Federal Ministry of Economy, Family and Youth (BMWFJ),
APPLICATION
SW LAYER
IO_ACCPED.C MOTORCONTROL.C IO_THRVAL.C
...
the Austrian Research Promotion Agency (FFG), the Province [10] D. Kum, G.-M. Park, S. Lee, and W. Jung. AUTOSAR Migration from
of Styria, and the Styrian Business Promotion Agency (SFG). Existing Automotive Software. In International Conference on Control,
Automation and Systems, COEX, Seoul, Korea, 2008. DGIST.
Furthermore, we would like to express our thanks to our [11] J.-C. Lee and T.-M. Han. ECU Configuration Framework based on
supporting project partners, AVL List GmbH, Virtual Vehicle AUTOSAR ECU Configuration Metamodel. 2009.
Research Center, and Graz University of Technology. [12] G. Macher, E. Armengaud, and C. Kreiner. Automated Generation of
AUTOSAR Description File for Safety-Critical Software Architectures.
R EFERENCES In 12. Workshop Automotive Software Engineering (ASE), Lecture Notes
in Informatics, pages 2145–2156, 2014.
[1] AUTOSAR development cooperation. AUTOSAR AUTomotive Open
System ARchitecture, 2009. [13] G. Macher, E. Armengaud, and C. Kreiner. Bridging Automotive
Systems, Safety and Software Engineering by a Seamless Tool Chain.
[2] AUTOSAR Development Cooperation. Virtual Functional Bus. online, In 7th European Congress Embedded Real Time Software and Systems
2013. Proceedings, pages 256 –263, 2014.
[3] M. Broy, M. Feilkas, M. Herrmannsdoerfer, S. Merenda, and D. Ratiu. [14] N. Naumann. Autosar runtime environment and virtual function bus.
Seamless Model-based Development: from Isolated Tool to Integrated Department for System Analysis and Modeling.
Model Engineering Environments. IEEE Magazin, 2008.
[15] S. Piao, H. Jo, S. Jin, and W. Jung. Design and Implementation
[4] C. Ebert and C. Jones. Embedded Software: Facts, Figures, and Future.
of RTE Generator for Automotive Embedded Software. In Seventh
IEEE Computer Society, 0018-9162/09:42–52, 2009.
ACIS International Conference on Software Engineering Research,
[5] H. Giese, S. Hildebrandt, and S. Neumann. Model Synchronization Management and Applications. DGIST, 2009.
at Work: Keeping SysML and AUTOSAR Models Consistent. LNCS
5765, pages pp. 555 –579, 2010. [16] E. Rodriguez-Priego, F. Garcia-Izquierdo, and A. Rubio. Modeling
Issues: A Survival Guide for a Non-expert Modeler. Models2010,
[6] J. Holtmann, J. Meyer, and M. Meyer. A Seamless Model-Based 2:361–375, 2010.
Development Process for Automotive Systems, 2011.
[17] G. Sandmann and M. Seibt. AUTOSAR-Compliant Development
[7] J. Hyun Chul, P. Shiquan, C. Sung Rae, and J. Woo Young. RTE Workflows: From Architecture to Implementation - Tool Interoperability
Template Structure for AUTOSAR based Embedded Software Platform. for Round-Trip Engineering and Verification & Validation. SAE World
In Basic Research Program of the Ministry of Education, Science and Congress & Exhibition 2012, (SAE 2012-01-0962), 2012.
Technology, pages 233–237, 2008.
[18] G. Scuro. Automotive industry: Innovation driven by elec-
[8] ISO - International Organization for Standardization. ISO 26262 Road
tronics. http://embedded-computing.com/articles/automotive-industry-
vehicles Functional Safety Part 1-10, 2011.
innovation-driven-electronics/, 2012.
[9] H. C. Jo, S. Piao, and W. Y. Jung. Design of a Vehicular code
generator for Distributed Automotive Systems. In Seventh International [19] S. Voget. AUTOSAR and the Automotive Tool Chain. In DATE10,
Conference on Information Technology. DGIST, 2010. 2010.