image thumbnail

Embedded Coder Support Package for STMicroelectronics Discovery Boards

Generate code optimized for STM32 Discovery boards and any STM32F4xx based boards

20.1K Downloads

Updated 22 Sep 2021

Editor's Note:

This support package is currently unable to download third-party software for MATLAB R2017a and earlier versions. For details and workaround, see this Bug Report.

MATLAB R2017b and later versions are unaffected.

Embedded Coder® Support Package for STMicroelectronics® Discovery Boards enables users to build, load, and run Simulink models on STM32 devices using two separate workflows included in this support package. ST Discovery boards are supported using built-in peripheral configurations and any STM32F4xx family processor is supported using STM32CubeMX-generated peripheral configurations.
Capabilities of both workflows include:
  • Rapid prototyping of algorithms on-chip using automated build, deploy, and execution
  • Perform real-time parameter tuning and logging using external mode
  • Perform processor-in-the-loop (PIL) with execution profiling
  • Generate processor optimized code, including CMSIS-DSP
  • Driver block libraries for on-chip and on-board peripherals such as ADC, digital I/O, PWM, SPI, I2C, and more (varies by support package and workflow)
Discovery board specific capabilities include:
  • Peripheral driver blocks for digital I/O, ADC, PWM, IRQ, I2C, SCI, and SPI
  • Board-specific audio, MODBUS®, WiFi, ThingSpeak™, and environmental sensors blocks
  • Supported Hardware: STM32F746G-Discovery, STM32F769I-Discovery, STM32L475VG-Discovery (B-L475E-IOT01A), STM32F4-Discovery
STM32CubeMX workflow specific capabilities include:
  • Support for peripheral configuration using STM32CubeMX integration
  • Suitable for generation of production code used in high volume deployment
  • Includes peripheral driver blocks for digital I/O, ADC, PWM, and IRQ
  • Speed motor control development with example models for Motor Control Blockset™
  • Supported Hardware: any STM32F4xx-based board (Nucleo, Discovery, or custom)
For detailed information, view the online documentation.
This support package is functional for R2013b and beyond. STM32CubeMX workflow was added in 2021b. See release notes for details.
For download or installation issues, please contact MathWorks Technical Support.
For easy-to-use support of STM32 Nucleo boards, consider the Simulink Coder Support Package for STMicroelectronics Nucleo Boards.
MATLAB Release Compatibility
Created with R2014a
Compatible with R2014a to R2021b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!