How can I use a custom STM32F4xx board with the new "Embedded Coder Support Package for STMicroelectronics STM32 Processors" ?

8 ビュー (過去 30 日間)


MathWorks Support Team
MathWorks Support Team 2022 年 9 月 30 日
To configure your model for a STM32F4xx based board, open the Configuration Parameters.
Go to Hardware Implementation > Hardware board and select STM32F4xx Based board.
There are two options to add support for your STM32 Processor-Based Board in Simulink: Use an existing STM32CubeMX project, or create a new one from Simulink. 
First Approach: In the "Build options", click Browse to select an existing STM32CubeMX project (.ioc file). 
Second Approach: In the "Build options", click Create to create a custom STM32CubeMX project from Simulink:
Select Custom STM32F4xx Based on the hardware drop-down.
Please note that the "Custom hardware part number" should exactly match with the MCUs xml file names found at <STM32CubeMX installation directory>\db\mcu.
For example, to create a STM32CubeMX project for STM32F405RG microcontroller, the customer should specify "STM32F405RGTx" for "Custom hardware part number" because STM32F405RG is defined in STM32CubeMX database with xml name "STM32F405RGTx.xml".
Make sure to perform additional settings for both the approaches as described in Step 6 of Task 3 from
See the following tutorial for further installation and setup prerequisites and details:

その他の回答 (0 件)




Community Treasure Hunt

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

Start Hunting!

Translated by