Embedded Coder Support Package for STMicroelectronics STM32 Processors and Simulink Coder Support for STM32 Nucleo Boards enables you to automatically build, load, and run algorithms on STM32 devices using Simulink® models. Simulink hardware support packages for STM32 offers these capabilities:
- 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)
Learn More
- Support for STMicroelectronics Discovery Boards - Rapid Prototyping Using ST Discovery Boards with Advanced Driver Blocks
- Support for STM32 Based Custom Boards and ST Evaluation Boards using STM32F4xx, STM32F7xx, STM32G4xx, and STM32H7xx Processors
- Support for STMicroelectronics Nucleo Boards - Rapid Prototyping Using ST Nucleo Boards with Simple Driver Blocks
In addition to STM32-specific hardware support, MATLAB Coder, Simulink Coder, and Embedded Coder generate ANSI/ISO C/C++ code that you can compile and execute on any microcontroller, including ST SPC5, Stellar, ST8, and STM32. This algorithm export workflow is explained here (20:18) for STM32, but it is similar for all devices.
Embedded Coder Support Package for STMicroelectronics STM32 Processors
Generate processor-optimized C/C++ code that you can compile and execute on STM32F4xx, STM32F7xx, STM32G4xx, single core STM32H7xx, STM32L4xx, STM32L5xx, and STM32WBxx based boards using Embedded Coder™.
- Ideal for ST evaluation boards and custom boards using a supported processor family
- 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
- STM32F4xx, STM32F7xx, STM32G4xx, single core STM32H7xx, STM32L4xx, STM32L5xx, and STM32WBxx based board
Learn More
- Getting Started with STMicroelectronics STM32 Processor Based Hardware Board
- Using the Analog to Digital Converter Block to Support STMicroelectronics STM32 Processor Based Boards
- Sensorless Field-Oriented Control of PMSM Using STM32 Processor Based Hardware Board
- STM32 Processor-Based Boards - Documentation
- Embedded Coder Support Package for STMicroelectronics STM32 Processors - Release Notes