Installing Embedded Coder Support for STMicroelectronics STM32 Boards - MATLAB & Simulink
Video Player is loading.
Current Time 0:00
Duration 3:54
Loaded: 4.23%
Stream Type LIVE
Remaining Time 3:54
 
1x
  • Chapters
  • descriptions off, selected
  • en (Main), selected
    Video length is 3:55

    Installing Embedded Coder Support for STMicroelectronics STM32 Boards

    Use the Embedded Coder® Support Package to generate, compile, and execute processor-optimized C/C++ code on STMicroelectronics® STM32 Discovery boards and STM32F4xx processor-based boards.

    Published: 21 Nov 2021

    [MUSIC PLAYING]

    Hello, everyone. In this video I will take you through the setup and installation process of the Embedded Coder Support Package for STMicroelectronics Discovery Boards. Let us begin by opening MATLAB. We have made major upgrades to our support package with respect to adding processor level support. And you will see these changes from 2021b release of MATLAB.

    Let's begin the installation by going to the Add-ons dropdown menu and Get Hardware Support Packages. Searching for stm32 provides us with two different support packages. In this video, I will cover the setup and installation of Embedded Coder Support Package but one might wonder the difference between these two support packages. The basic difference is the Simulink Coder Support Package for Nucleo Boards, this is based out of the Embed platform and provides basic driver configurations. While the Embedded Coder Support Package for Discovery Boards provides a broad array of support, including cross-selling and support.

    So clicking on this will bring us to this page where we can show the support package. This installation is pretty straightforward. Going through the software license agreement we go to the next step where we need to install a couple of Third-Party Software. Now that the installation is complete, we can choose to set up the Hardware Support Package now. This brings us to the hardware setup. From the 2021b MATLAB release, we have support for the F4 family of process within Simulink.

    And in case you're using the STM32F7-Discovery Boards, you may cancel the setup. When in case you're using either the F4-Discovery Board or the F4-Series of Process, we can move on to the next screen. So providing the processor level support, we are leveraging the STM32CubeMX tool and the STM32CubeProgrammer which we need to download from the STMicroelectronics site.

    And clicking on Download takes you to this page where you can log in with the registered email ID and password to download the softwares. You can download the software and install them. Once the installation is complete, we need to provide the installation part of the STM32Cube . The default location of the installation is already prefilled. We need to validate the installation. Similarly, we need to validate the installation of the STM32CubeProgrammer.

    Additionally, we need to download STM32Cube Firmware packages which will be used for code generation. You can choose the part where this file needs to be downloaded. In my case, I'm leaving it to the default part that is prefilled. Moving on to the next screen, this step downloads the STM32Cube Firmware packages that are required for the F4 family of process.

    Once the installation is complete and verified, we can move on to the next step. Similarly, you can download the firmware package for the F4Discovery Boards. But in case you do not plan to use the support package with the F4Discovery Board, you can cancel the hardware setup at this point. Next, you can download the firmware package and install it. And in this check, we'll validate the location of installation. After choosing the location of the installation, you can validate the installation.

    This screen provides a summary of the validation of the installed firmware package. Now the hardware setup process is complete. And clicking on Finish takes you to the documentation page where we have a good set of examples that should help you get started with the support package and tweak this for your application requirements.