Can I generate code for STM32H7 Boards using the Embedded Coder Support Package?

33 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Dec 2023
Edited: MathWorks Support Team on 24 Dec 2023

R2022a and later

Support for STM32H7xx-based devices is available as part of the new MathWorks Embedded Coder Support Package for STMicroelectronics STM32 Processors:
This support is based on the STM32CubeMX code generation workflow, and you can configure the pins and peripherals among other details from STM32CubeMX IDE. Currently, only single-core variants of the H7 family are supported.
 

R2021b and prior

For MATLAB R2021b and prior, you can deploy code on the H7 processor using one of the three Workflows:
Workflow 1:
If the processor is on the Nucleo board, support packages for the Nucleo-H743ZI2 board can be used:
Please note that the support package for the Nucleo-H743ZI2 board is based on MBED workflow, the settings for the clock, memory configurations, pins, etc. are statically defined. Hence code generated from the Nucleo-H743ZI2 board may not directly work with other STM32H7 boards such as STM32H7A3RI. It may be necessary to do additional configurations (hand-coding) to enable the generated code to work on the STM32H7A3RI device.
Workflow 2:
The Target-SDK workflow from the Embedded Coder Support Package for ARM Cortex-M Processors can be used to create a new target for the STM32H7xx-based device:
Please follow the steps on developing the target using the package, which can be accessed from this link:
Before you start with the above step, please read the "What Is a Target?" and "Prerequisites" parts of the "Develop A Target" documentation. When you are ready to start creating your own target, please follow the steps in the "Implement a Target" section. You can access the pages from these links:
Workflow 3:
You can generate the algorithm code alone for the device using the Embedded Coder Support Package for ARM Cortex-M Processors. This option provides advanced features like code replacement for math operations using the CMSIS library for ARM Cortex-M Processors that can be manually leveraged. The algorithm code generated from MATLAB/Simulink will then have to be manually integrated into the device-specific code to be able to run the algorithm on the STM32 device. The documentation of "Algorithm-Export Workflows for Custom Hardware" can be accessed with this link:
https://www.mathworks.com/help/mcb/gs/algorithm-export-workflow-for-custom-hardware.html

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!