Litcius/Paper detail

Model-Based Design Streamlines for STM32 Motor Control Embedded Software System

Loubna Belhamel, Arturo Buscarino, Antonio Cucuccio, Luigi Fortuna, Gaetano Rasconà

202018 citationsDOI

Abstract

This paper presents a Model-Based Design (MBD) methodology as a promising approach for the rapid and se-cure development of Embedded System applications, including those involving digital controllers. Based on existing hardware and software application-oriented tools by STMicroelectronics, a new modeling technique has been implemented to move from a traditional design workflow to an MBD one by using Mathworks <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">®</sup> software platform. For a practical application of the proposed approach, a case study is reported to design a Permanent Magnet Synchronous Motor (PMSM) drive based on the STM32 MCU family. The main contribution of this paper is to make focus on concretely building a unique model architecture of a complex software/hardware system able to implement all the major aspects of MBD methodology such as executable requirements, Normal and Processor-In-the-Loop (PIL) simulation modes, continuous test and verification, automatic code generation. To achieve this purpose, a new Simulink <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">®</sup> blockset dedicated to the STM32 Motor Control ecosystem was developed. It includes Simulink blocks for maths, algorithms, and IPs, electronic circuitries, MCU peripherals, speed sensors. Simulink <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">®</sup> Embedded Coder tool has been used to automatically generate code for a specific STM32 MCU tar-get to overcome the time consuming and error-prone problems of the handwritten coding.

Topics & Concepts

Computer scienceMicrocontrollerEmbedded systemSoftwareSTM32ExecutableEmbedded softwareComputer hardwareOperating systemChipTelecommunicationsReal-time simulation and control systemsEmbedded Systems Design TechniquesReal-Time Systems Scheduling
Model-Based Design Streamlines for STM32 Motor Control Embedded Software System | Litcius