error checks or logic introduced by the code genera-
tor. In our example, the code cyclomatic complexity
is high because of ‘for-loop’ in the code for vector in-
puts of multi-port switch and vector input ‘config’ of
the bus creator ‘bc slaveout Bus’. Static model cyclo-
matic complexity did not consider the signal dimen-
sions and hence the value was less.
5 FUTURE WORK
As a part of further verification of the slave controller,
processor-in-the-loop and hardware-in-the-loop tests
will be executed to also ensure the real-time function-
ality of the software. The next step is to develop and
verify the master controller in same aspects using the
build tool. As a part of this project, a motor con-
troller will also be developed and verified using the
build tool. The motor controller will give input to the
battery master controller with required voltage. Con-
tinuous Integration platform for all sub projects is also
being setup.
As mentioned before, the build tool is also be-
ing improved in parallel. Recent and future improve-
ments include fixing bugs, resolving issues faced by
developers, setup of Continuous Integration server for
development of the tool and also for its applications,
parallel modular code generation, etc.
6 CONCLUSION
In this research, a process-oriented build tool is ap-
plied to develop and verify a battery slave controller
for multilevel battery system. Following advantages
of the build tool are realized: traceability and aggre-
gation of verification results, incremental verification
tasks, predefined configuration settings of the verifi-
cation tools like Simulink test, Polyspace, SL cover-
age, etc., and interlinking of tools. To validate these
advantages, model and code coverage is discussed
explicitly in this paper. Significance of model and
code coverage with respect to DO-178C objectives
is clearly explained with brief description of the two
type of coverage: 1) Requirements-based coverage
analysis and 2) Structural coverage. Following the
description, these model and code coverage results of
slave controller application is discussed. Cyclomatic
complexity of model and code is discussed. A new
design job is also added into the lifecycle package of
the process-oriented build tool called as ‘Model Met-
rics’. This job provides the cyclomatic complexity
metric of the design models along with other com-
plexity metrics like library count, Simulink library,
parameter and block count, etc.
The future of this research consists of improve-
ment of the build tool itself and widening the applica-
tion areas of it. The build tool will be used to develop
a master battery controller and a motor controller in
this project.
This research is funded by ELAPSED as part of
dtec.bw - Digitization and Technology Research Cen-
ter of the Bundeswehr which we gratefully acknowl-
edge. (DTEC, 2021).
REFERENCES
Bavertis (2022). www.bavertis.com.
Bingol, M. K., Deniz, E., Sari, M., Saritas, I. E., and Yil-
mazer, Y. (2014). Adapting DO-178c processes by im-
plementing a reverse engineering technique. In 2014
33rd Digital Avionics Systems Conference. IEEE.
Brauer, J., Dahlweid, M., and Peleska, J. (2015). Tool-
supported structural coverage analysis for DO-178c
compliant software. In SAE Technical Paper Series.
Cleland-Huang, J., Agrawal, A., Vierhauser, M., and Mayr-
Dorn, C. (2021). Breaking the deep freeze. IEEE
Software, 38(3):43–51.
Dmitriev, K., Zafar, S. A., Schmiechen, K., Lai, Y., Saleab,
M., Nagarajan, P., Dollinger, D., Hochstrasser, M.,
Holzapfel, F., and Myschik, S. (2020). A lean and
highly-automated model-based software development
process based on do-178c/do-331. In AIAA/IEEE 39th
Digital Avionics Systems Conference.
DTEC (2021). Electric Aircraft Propulsion – die zukunft
der flugzeugantriebe. Accessed: 2022-04-11.
GrammaTech (2022). White paper: Making safety-
critical software development affordable with
static analysis. https://codesonar.grammatech.com/
making-software-affordable-with-static-analysis.
Hochstrasser, M., Myschik, S., and Holzapfel, F. (2018). A
process-oriented build tool for safety-critical model-
based software development. In Proceedings of the
6th International Conference on Model-Driven Engi-
neering and Software Development.
Hochstrasser, M., Myschik, S., and Holzapfel, F. (2019).
Application of a process-oriented build tool for flight
controller development along a DO-178c/DO-331
process. In Communications in Computer and Infor-
mation Science.
Hochstrasser, M. T. (2020). Modular model-based develop-
ment of safety-critical flight control software. Disser-
tation, Technische Universit
¨
at M
¨
unchen, M
¨
unchen.
Kersten, A., Kuder, M., Grunditz, E., Geng, Z., Wikner, E.,
Thiringer, T., Weyh, T., and Eckerle, R. (2019). In-
verter and battery drive cycle efficiency comparisons
of chb and mmsp traction inverters for electric vehi-
cles. In 2019 21st European Conference on Power
Electronics and Applications, pages P.1–P.12.
Kuder, M., Schneider, J., Kersten, A., Thiringer, T., Eck-
erle, R., and Weyh, T. (2020). Battery modular mul-
MODELSWARD 2023 - 11th International Conference on Model-Based Software and Systems Engineering
192