Model-based design in the engine control algorithm code generation for the STM32 microcontroller
Abstract
Model-based design in the engine control algorithm code generation for the STM32 microcontroller
Incoming article date: 17.04.2020Using the concept of the model-based design, this article considers the stages of generating the C-code of the engine control algorithm using the Embedded Coder and STM32 Embedded Target tools for Matlab/Simulink. For the example of the chosen stm32 microcontroller, its peripherals will be initialized and connected to the graphical model of the algorithm. In addition, a description of all the blocks and their functions of the resulting model is provided. At the last stage, the C code is generated, ready for loading it into the microcontroller and further controlling the motor as part of the electric drive.
Keywords: Model-based design, Matlab/Simulink, STM32, the control algorithm, STM32 Embedded Target, Embedded Coder