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

16 ビュー (過去 30 日間)

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 12 月 23 日
編集済み: MathWorks Support Team 2023 年 12 月 24 日
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 https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html
See the following tutorial for further installation and setup prerequisites and details:https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/STM32-CubeMX-Configuration.html

その他の回答 (0 件)

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by