Model based code generation to Cortex M3 microcontrollers with Matlab Simulink Real-Time workshop

OData support
Scherer Balázs Attila
Department of Measurement and Information Systems

Nowadays, if we take a quick glance around us, we can easily see that we are surrounded by electric appliances, which have become an elemental part of our everyday lives. The electronic, Information Technology and communication sector has been booming, and consequently, has gone through major changes in the previous decade. More and more electric appliances are introduced to the market, and as a result, more and more market participants intend to have a share in the profits. While these market sectors are highly profitable, the competition on the market is also massive, therefore, only those companies have a chance to survive that are able to rapidly manufacture new products while staying highly economical.

Around 2003, most IT companies realized that most of their current development plans overlap with previous projects, and also, that they are unable to introduce new products to the market quickly enough by employing a sequential design process. The need for automation, re-use and a high level of programming became apparent. Many new models were introduced to replace the old ones, among which the V-model proved to be the most successful, as its versions and varieties are still widely used among the market participants.

By recognizing the dominant trends on the international market, many software manufacturing firms have chosen to develop new applications for their programs, which fit in well with the V-model approach. Consequently, 4th generation languages were developed in order to create workflow and model-based diagrams.

For this paper, I have researched the automatic code-generation process, by using a 4th generation programming language (MATLAB Simulink) (i.e. how a graphic workflow diagram becomes a binary source code). The generated source code was then tested on a demo card (STM3210C-EVAL), which had a Cortex core microcontroller.

In the first few chapters of my thesis, I would like to point out the advantages of model-based design, while also describing the general characteristics of Cortex cores. The subsequent chapters of my paper deal with the code-generation process by using MATLAB Simulink and MATLAB Real-Time Workshop.

In the second half of my diploma paper, I would like to describe how programs can be written in Simulink, and finally, how the blocks of the model can be placed into parallel tasks of a real-time operation system (FreeRTOS).


Please sign in to download the files of this thesis.